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

Watch dog + sd_power_system_off Is it possible?

Hello !

is possible turn off my system using sd_power_system_off  when the Watch dog is enabled?

After I called sd_power_system_off  my device is restarting and initialize everything again

details:

SDK13, nRF52

Parents
  • Hello

    I also have the same problem.

    I am trying to power off the system using the "sd_power_system_off" but after some time the watchdog restarts the system.

    If I use the "nrf_power_system_off" the system remains Off, just as desired.

    Shouldn't the "sd_power_system_off" work just like the "nrf_power_system_off"? Do I need to use the "nrf_power_system_off"?

    Details: SDK13, nRF52

  • Hi,

    Shouldn't the "sd_power_system_off" work just like the "nrf_power_system_off"? Do I need to use the "nrf_power_system_off"?

    The function nrf_power_system_off() will go into an empty loop if you are in Debug mode. See this page.

    Also note that when the device wakes up from System Off mode, it will restart. You will need to look at RESETREAS to see the reset source.

  • Hello Sigurd

    Thank you for your answer.

    Yes "If the device is in debug interface mode, System OFF will be emulated" and yes I was in Debug mode but with or without the Debug mode the nrf_power_system_off() works and the watchdog does not restart the system. While when I use the sd_power_system_off() the watchdog restarts the system. So I am not sure if the Debug mode is the problem.

    I am assuming that when I use the nrf_power_system_off() the system goes to the "real" system off mode while using the sd_power_system_off() the system goes to the emulated system off mode. And in the emulated system off mode the watchdog restarts the system. Is this correct?

Reply
  • Hello Sigurd

    Thank you for your answer.

    Yes "If the device is in debug interface mode, System OFF will be emulated" and yes I was in Debug mode but with or without the Debug mode the nrf_power_system_off() works and the watchdog does not restart the system. While when I use the sd_power_system_off() the watchdog restarts the system. So I am not sure if the Debug mode is the problem.

    I am assuming that when I use the nrf_power_system_off() the system goes to the "real" system off mode while using the sd_power_system_off() the system goes to the emulated system off mode. And in the emulated system off mode the watchdog restarts the system. Is this correct?

Children
No Data
Related