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

which is the correct action after calling sd_power_system_off()

Hi gays,

            Based on ble_app_hrs_freertos project, I developed my own project.  but I have encountered such issue in my own project:

  • system startup,  from the log, such string will be printed: "XXX FreeRTOS example started".
  • When APP_ADV_DURATION timeout,  App will receive BLE_ADV_EVT_IDLE event and call sleep_mode_enter()
  • In sleep_mode_enter() method, sd_power_system_off() will be called.
  •  "XXX FreeRTOS example started"  will be printed again, it mean the system reboot.

     But in  ble_app_hrs_freertos project, the executed result is following :

  • system startup,  from the log, such string will be printed: "HRS FreeRTOS example started."
  • When APP_ADV_DURATION timeout,  App will receive BLE_ADV_EVT_IDLE event and call sleep_mode_enter()
  • In sleep_mode_enter() method, sd_power_system_off() will be called.
  • But "HRS FreeRTOS example started." will not be printed ,does it mean just wakeup from the deep mode .

      My question:

  •   For sd_power_system_off(), which result is right? reboot or just wakeup ?
  • If my project result is wrong , can you give me some advice about what cause the reboot,please.

   Thanks a lot!

Related