Simulink sample time determination for S32K144EVB + MPC33771

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

Simulink sample time determination for S32K144EVB + MPC33771

跳至解决方案
2,095 次查看
bcelikte
Contributor III

hi,

I have a complex model (BMS model) for S32K144EVB with MPC33771

When I try 1s sample time, everything is calculating in time (every timestep), but when I changed sample time 50ms some blocks of model (stateflow) is lagging for couple of timesteps (basically, showing same values for couple of of counters which should be increased every 50ms ). My model solver is discrete and has one sample time. So, what I understand MCU could not handle all calculation for 50ms but 1s is OK. 

Is there any way to know the minimum sample time that I can run without any problem on this MCU? Or do you have any suggestion on the Simulink side?

Thanks

0 项奖励
回复
1 解答
2,041 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello,

Just for the record, and to others who are facing this issue, proved that the issue was mainly caused due to the step execution time longer than 50ms.

Hope this helps,

Marius

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,042 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello,

Just for the record, and to others who are facing this issue, proved that the issue was mainly caused due to the step execution time longer than 50ms.

Hope this helps,

Marius

0 项奖励
回复
2,048 次查看
Woodlawn22
Contributor I

I faced similar kind of issue last time, I am still searching for some proper solution Same issue still no fix to this 

0 项奖励
回复