This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

wfi in debug mode

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).

    Thanks,

    Sandeep

  • Hello,

    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.

    Best regards,

    Yasuhiko Koumoto.