AnsweredAssumed Answered

SPCSetRunMode() does sometimes not return

Question asked by vierman.gert on Feb 14, 2017
Latest reply on Feb 27, 2017 by Erwan Y

My project on the P44L3 runs in RUN1 mode and uses SPCSetRunMode(SPC5_RUNMODE_HALT0) in the idle loop for power saving. The PIT timer runs at 1Khz, so switching to HALT0 mode is typically done 1000 times per second.

 

In some cases - not sure yet how to reproduce though - the SPCSetRunMode() function does not return, but keeps spinning in the for() loop waiting for I_IMODE or I_IMTC, neither of which ever go high. ME.IS is still 0 in this case.

 

Are there any known circumstances in which this can happen, or anything I could do to debug this issue?

 

Thank you,

Outcomes