unable to get property style of undefined or null reference

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to get property style of undefined or null reference

6,441 Views
kabbany_fadi
Contributor II

I am using MCSPTE1AK116_PMSM_FOC_2Sh board

while i am tring to open a freemaster to execute the test i got a message that:

 

Line: 87

Char:6

Error: unable to get property style of undefined or null reference

Code: 0

URL: file:///C:/Users/X/workspaceS32DS.ARM.2.2/MCSPTE1AK116_PMSM_FOC_2Sh/FreeMASTER_control/MCAT/src/JS_f...

 

do you want to continue running scripts on this page ?

 

then nothing is running, what shall i do ?

Tags (2)
0 Kudos
Reply
9 Replies

4,543 Views
MichalH
NXP Apps Support
NXP Apps Support

Hello,

both me and my colleague Marek who was posting his answers above have tested the project and confirmed correct functionality on our side. Most likely this the issue you are facing is also not related to hardware setup.

I suspect there is some security issue preventing the FreeMASTER from opening local HTML files or running scripts. In this Motor Control application, the FreeMASTER project uses legacy "IE Mode" to display HTML content, and there might be some restrictions in the Windows settings.

Please follow the steps below. The procedure may help to reveal the root cause or at least give us more information. I have performed the steps on my side and I'm sharing how it looks on my side. Please do the steps yourself and take screenshot of errors or of a different behavior:

1. Run FreeMASTER with the S32K_PMSM_Sensorless.pmp project. On my side this opens fine without any error. You will get your errors pop-up. Try to press OK/Cancel buttons until you get no more messages, you will probably get many of them, just be patient. 

MichalH_0-1764678310647.png

2. Leave the FreeMASTER running (this is important). Run Microsoft Edge browser and press Ctrl+Shift+N to open an InPrivate anonymous window.

3. Press the ... button to open Edge settings menu, and select More tools / Internet Options

MichalH_1-1764678764523.png

4. Go to Advanced tab and make sure the two "Allow active content ..." checkboxes are checked. Actually, they were unchecked on my side, so this is definitely not the root cause of the issue, but let's check them both anyway. Press OK to accept.

MichalH_2-1764678852448.png

5. Go back to Edge ... settings menu and go the "Settings"

MichalH_3-1764679086762.png

6. There is a search bar in the Settings page, enter "IE mode" there. Then make sure to enable "IE Mode switch", and also enable the IE toolbar button in "Appearance->Toolbar" section:

MichalH_5-1764679256291.png

7. Press the back arrow back two times so you get out of the Edge settings pages.

8. Locate the FreeMASTER_control\MCAT\src\MainPage.html file and drag-drop it into the Microsoft Edge window.

9. You will get some error messages (I got some about xmlDoc.load), just ignore them all. After skipping the errors, you should see the page graphics loaded. Note that there is the IE Mode button ready to be pressed.

MichalH_8-1764679642311.png

 

10. Finally the important step which will be different in my and your case. Press the IE Mode button and see the errors you will get. In my case it is the confirmation prompt - press Done

MichalH_9-1764679695714.png

11. Press F5 to refresh the page. I'm getting the "yellow bar" popup with warning about blocked scripts/ActiveX controls. You will probably get a different one.

MichalH_10-1764679789574.png

 

12. After pressing "Allow blocked content" the page becomes operational. In my case, I get no more errors and can change tabs and edit motor parameters. Note that the page is now internally connected to FreeMASTER running in background.

MichalH_12-1764679947891.png

 

I expect you will get some other behavior and errors in steps 10 and 11 which will hopefully indicate why is the page blocked on your side. 

Please share the screenshots here.

Thank you for your cooperation,
Michal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Reply

6,169 Views
marekmusak
NXP Employee
NXP Employee

Hello,

Thanks for reporting the issue. I’ve tried to reproduce the problem but couldn’t replicate it on my side. Could you please confirm if you're using the latest version of the MCSPTE1AK116 Software and FreeMASTER?
If not, updating might help. If you are already on the latest version, feel free to share more details so I can look into it further.

Also, just in case—have there been any modifications to your setup or configuration that might influence the behavior?

Best regards,

Marek

0 Kudos
Reply

5,818 Views
kabbany_fadi
Contributor II

sorry for the delay in the reply.

indeed the setup was not touch at all, i only installed the software and run as mentioned in your website for PMSM

i changed the jumper to run BLDC and it is working fine without any issue.

please have a look at the connection, might something is not correct, which info shall i provide more ?

0 Kudos
Reply

6,339 Views
kabbany_fadi
Contributor II

any support from NXP ?

0 Kudos
Reply

6,320 Views
MichalH
NXP Apps Support
NXP Apps Support

Hello,

actually, this issue relates to motor control toolbox (MCAT), not to FreeMASTER. The MCAT UI runs inside the FreeMASTER and uses it to access the board hardware, but the error you show is generated by the HTML/JScript code of the MCAT UI.

I would recommend to seek for answers in a community focused to motor control or for the target MCU platform. 

Regards,
Michal

 

0 Kudos
Reply

6,316 Views
kabbany_fadi
Contributor II

Thank you for your swift reply.

 

please can you send to me the link of the community focused to motor control or for the target MCU platform

then i can ask this question

 

Best regards

Fadi

0 Kudos
Reply

6,307 Views
MichalH
NXP Apps Support
NXP Apps Support

The home of MCAT is https://www.nxp.com/mcat - perhaps you could find the latest version of your software package there.  Or maybe at the S32K1 motor control demo kit home page: https://www.nxp.com/design/design-center/development-boards-and-designs/MCSPTE1AK116 

The S32K product forum is here: https://community.nxp.com/t5/S32K/bd-p/S32K

Regards,
Michal

 

0 Kudos
Reply

6,292 Views
kabbany_fadi
Contributor II

I was looking for similar issue but i could not find any

who can support me here?

can we make a teams call ?

 

0 Kudos
Reply

6,422 Views
kabbany_fadi
Contributor II

kabbany_fadi_0-1761231219204.png

 

0 Kudos
Reply