Problem with freemaster Motor control example mbdt code S32K396

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

Problem with freemaster Motor control example mbdt code S32K396

Jump to solution
651 Views
agus_idiada
Contributor III

Hello,

I uploaded with simulink the motor control example code into the S32K396, version S32K396_MBDT_BASED_MC_0_9_0.

The code upload without problems but then freemaster is not working. I get the error:
"Can not detect the board information. Error code: 0x80000101 (response timeout)".

I upload another stable project that I had and freemaster is working, so I conclude my setup is working fine (connection cable, COM port, baudrate config).

What is then wrong with the example project?

Thanks,

Agustin.

@Irina_Costachescu 

0 Kudos
Reply
1 Solution
399 Views
agus_idiada
Contributor III

I manage to make it works after changing the procedure in the provided doc.

View solution in original post

0 Kudos
Reply
6 Replies
400 Views
agus_idiada
Contributor III

I manage to make it works after changing the procedure in the provided doc.

0 Kudos
Reply
571 Views
agus_idiada
Contributor III

So I checked the configuration a BGA-DC1 board that is running the freemaster and I found only one difference (The PortPin Level value). Once changed it is still freemaster not working.

0 Kudos
Reply
553 Views
agus_idiada
Contributor III

Ok, so now it is working but some variables are unstable. Why do I get unknown mesagges?

agus_idiada_1-1729070551307.png

 

 

Tags (1)
0 Kudos
Reply
519 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hello @agus_idiada 

Could you please try the following:

1. Reselect the .elf file from the Project -> Options menu? Under the Default symbol file, please make sure that you have the latest successfully generated executable for your application.

Irina_Costachescu_0-1729177967645.png

2. If you right click on the MBD State variable, you should be able to edit its properties. Could you please check that the Address points to the right structure generated from your model? 

Irina_Costachescu_1-1729178030895.png

Also, please note that the MBD State variable displays the value of the AppStates structure, which is defined as an Enumerated Data Type inside the model's .sldd. Hence, since it seems that the values of this enumeration are not recognized by your FreeMASTER project, could you please check that this variable is present inside the Simulink Model Explorer? Please see the attached screenshot below:

Irina_Costachescu_3-1729178085721.png

Moreover, could you please provide additional details on the current setup and steps that you have followed for being able to successfully build the model?

Thank you,

Irina

 

585 Views
agus_idiada
Contributor III

this is the error message I have

agus_idiada_0-1728996655108.png

 

0 Kudos
Reply
603 Views
agus_idiada
Contributor III

Is the example compatible with the board S32K396-BGA-DC1?

0 Kudos
Reply