Hi i'm running into an issue with the MPC5643L where the MCU switches to DRUN mode after wakeup from Halt0. The MCU was originally in RUN0 mode before switching to Halt0 for low power mode. The wakeup is triggered by a timer interrupt.
Prior to Halt0 request
After a timer interrupt wakes up the MCU:
Solved! Go to Solution.
Thanks for your response. I am aware that there's no natural transition in the reference manual from HALT0 to DRUN (which is why I started this post). My first suspicion was that a reset was occurring and I proved that this wasn't the case with breakpoints before the main loop.
You are getting reset on wakeup from halt0.
As you can see from reference manual it is not possible to make mode transition from halt0 to DRUN.
Please clear the RGM registers FES and DES before entering HALT0 state and set breakpoint on startup of your code, to prevent further execution after reset.You can also place a dummy loop there and stop SWT to prevent SWT reset.
Then check the RGM FES/DES register content or connect with debugger, attach a check FES/DES.
You will see the reset reason.
If the reset reason is FCCU then check FCCU CFS and NCFS registers for fault source.