Problem with freemaster Motor control example mbdt code S32K396

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem with freemaster Motor control example mbdt code S32K396

跳至解决方案
652 次查看
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 项奖励
回复
1 解答
400 次查看
agus_idiada
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
6 回复数
401 次查看
agus_idiada
Contributor III

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

0 项奖励
回复
572 次查看
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 项奖励
回复
554 次查看
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

 

 

标记 (1)
0 项奖励
回复
520 次查看
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

 

586 次查看
agus_idiada
Contributor III

this is the error message I have

agus_idiada_0-1728996655108.png

 

0 项奖励
回复
604 次查看
agus_idiada
Contributor III

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

0 项奖励
回复