We encounter intermittent failure on mode transition from DRUN to STOP via RUN0 during sleep process. This also happens on wakeup from STOP0 to DRUN.
My question is how can I tell the reason for the transition failure. I'm afraid it may be due to any pending unprocessed interrupts or some peripherals are not reset properly. Do we have any status register for this?
Hello,
in Mode Entry module, there is DMTS (Debug Mode Transition Status) register which could help you to identify the root cause of mode transition failure.
Please check this register and see, if any flags are set when mode transition is not completed correctly.
Regards,
Martin
This helps us a lot.
Thx, Martin!
BTW, is it possible to read DMTS register value on transition failure i.e from DRUN to RUN0 or RUN0 to STOP0.
To us, we can't step into the code after calling POWER_SYS_SetMode in power_manager.c
We are using EAR 0.8.1.