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

sd_power_system_off() cause reboot

I write this code to set my ble device power down,but it causes reboot without any error report.

                    
     GPIO_WAKEUP_BUTTON_CONFIG(LEFT_BUTTON_PIN_NO);
     GPIO_WAKEUP_BUTTON_CONFIG(RIGHT_BUTTON_PIN_NO);

     err_code = sd_power_system_off();

when I comment out this two lines

                   
       //GPIO_WAKEUP_BUTTON_CONFIG(LEFT_BUTTON_PIN_NO);
       //GPIO_WAKEUP_BUTTON_CONFIG(RIGHT_BUTTON_PIN_NO);

        err_code = sd_power_system_off();

power down worked,but could not wake up from this two button

I try to add


	err_code = app_button_enable();
        APP_ERROR_CHECK(err_code);

befor call sd_power_system_off() but fail too.

Is that right ? if I want wake it up by set the pin from high to low.

Parents
  • If a wake-up condition is true when you enter system off, the chip will immediately wake back-up, which will appear as a reset, since the chip is always reset when waking from system off.

    This means that before entering system off, you should make sure that no configured wakeup button is already low, and if it is, you may want to wait for it to be released before entering system off.

    Also, it seems like you're using SDK 4.4.2, but if you have a second revision chip (nRF51822 revision FA or later), I'd strongly recommend you to upgrade to SDK 5.1.0 and S110 version 6.0.0.

Reply
  • If a wake-up condition is true when you enter system off, the chip will immediately wake back-up, which will appear as a reset, since the chip is always reset when waking from system off.

    This means that before entering system off, you should make sure that no configured wakeup button is already low, and if it is, you may want to wait for it to be released before entering system off.

    Also, it seems like you're using SDK 4.4.2, but if you have a second revision chip (nRF51822 revision FA or later), I'd strongly recommend you to upgrade to SDK 5.1.0 and S110 version 6.0.0.

Children
Related