S32K344 Variables turning into nan

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

S32K344 Variables turning into nan

239 Views
REM
Contributor II

Hello,

I'm using the S32K344 Q172 EVB in an inverter application, in which it's hosting a custom FOC algorithm.
It is communicating via the CAN bus with a MicroAutobox II that is hosting a virtual model of an inverter and a PMSM.

The FOC algorithm was designed on Simulink using the S32K Model Based Designe toolbox v1.4 and simulink libraries and then it was tested with a virtual model of a PMSM and it's inverter.

After flashing the FOC algorithm onto the S32K344 Q172 and initiating communication with the MicroAutobox II I can follow the evolution of variables using freemaster.

Even though I used saturation blocks, I can see some variables that grow bigger and bigger until they become nan.

How can I fix this issue?

Thank you

Tags (1)
0 Kudos
Reply
0 Replies