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

Parents
  • 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.

Reply
  • 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.

Children