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

nRF52 nrf_pwr_mgmt_shutdown restarts device immedietly

In our application we are using SDK13 with FreeRTOS by creating two tasks (xTaskCreate), in certain case one of the task need to shutdown the system.
We are using nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_STAY_IN_SYSOFF) function but system restarts immediately.
We tried disabling and clear all interrupts and timers in our application but still controller is getting restarted.
We are using debugger so we added while(1); after the shutdown function call, by referring Nordic_forum.
Please help us to shutdown the controller, Is there any special steps need to be followed for application with FreeRTOS?
Can we have any example to shutdown the controller running application in SDK13/15 with FreeRTOS?

Related