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

Wake up from sleep in system ON mode

Hi Folks,

I am facing an issue while trying to perform a system On suspend procedure with a wake up on HITOLOW event.

No event is triggered when button pressed.

However, when I run nrf_pwr_mgmt_run() within a conditionnal loop (which exit from LP mode once port event interrupt is triggerred ), it works perfectly.

I don't understand the need for a while loop since in the first code i could check that the code is stuck in system ON mode (with No debug , just an output set to true before entering and reset once exited)

Thank you again for your explanations.

The best

Parents
  • Hi Jorgen,

    Sorry for the late reply.

    I did not run this code in Debug mode previously. I also ran just upon flashing device. 

    I must also add that I am not testing on a DK board but a custom one but I can't find a good explanation for the reason which may cause an exit from LP mode without the while(1) statement.

    I have observed the same phenomena as you when trying to execute in debug mode but no "in_pin_handler" is triggered.

    I will try to test your code on a different board to check if I can reproduce your results.

    Very strange...

Reply
  • Hi Jorgen,

    Sorry for the late reply.

    I did not run this code in Debug mode previously. I also ran just upon flashing device. 

    I must also add that I am not testing on a DK board but a custom one but I can't find a good explanation for the reason which may cause an exit from LP mode without the while(1) statement.

    I have observed the same phenomena as you when trying to execute in debug mode but no "in_pin_handler" is triggered.

    I will try to test your code on a different board to check if I can reproduce your results.

    Very strange...

Children
No Data
Related