Simulink sample time determination for S32K144EVB + MPC33771

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

Simulink sample time determination for S32K144EVB + MPC33771

Jump to solution
1,189 Views
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 Kudos
1 Solution
1,135 Views
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

View solution in original post

0 Kudos
2 Replies
1,136 Views
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 Kudos
1,142 Views
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 Kudos