We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Please help me understand expected behavior of CM4 when CM4 is in debug mode and WFI is executed through single step.
Does CM4 enter sleep/sleepdeep in such case ?
Thanks,
Sandeep
Hello,
the CM4 will enter the wait for interrupt mode by executing WFI instruction even in the debug mode.
As the CPU clock will not stop in the debug mode, CM4 will not enter the steep/deepsleep modes.
This means the debugger will stop at the WFI point until some interrupt requests will happen but the power consumption will not decrease.
Best regards,
Yasuhiko Koumoto.
Hi Yasuhiko Koumoto San,
It is very nice to hear from you, Thanks for the clarification.
I would like to clarify one more thing, After executing WFI through single_step in debug mode. if I pass one more single_step, Is CM4 expected to stay at WFI (assuming no interrupt request has come).
After executing WFI through single_step in debug mode. if I pass one more single_step, Is CM4 expected to stay at WFI.
I think so.