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

sd_power_system_off resets?

I'm using nrf_pwr_mgmt_shutdown to shut down the system to wake on interrupt. 17.0.2 SDK and 7.2.0 softdevice. When I step through the code with a debugger, it gets to sd_power_system_off and then when I attempt to step over it reboots. The bootloader starts and launches the app. Is this because a debugger is connected? When the softdevice is not enabled, and nrf_power_system_off is called instead, it does shut down correctly.

Parents Reply
  • I think the reset reason is actually 0x0010000 (not sure why that flag wasn't set before, but after clearing flags before shutdown that is what I get) which indicates "Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO". My GPIO config is toggle interrupt on a pin with internal pull down. Externally this pin is otherwise disconnected when the shutdown occurs, and remains at 0v.

Children
Related