This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

1

Hello,
I ask a question about power_manager() which is internally called sd_app_evt_wait().
I want the program to enter power_manager () to stop waiting for the event to come, but the program has been running in the main function for the loop, can not stop in power_manager () .

Why? should I set it up?

  • Hi,

    When you call sd_app_evt_wait() you will enter System ON idle mode, and wait for an application event/interrupt. If you stop the code execution while debugging, and if you are in System ON idle mode, you should see the WFE/SEV instructions in the disassembly. It will return when an application interrupt has occurred, thereby allowing the main thread to process it if needed.

Related