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

Bootloader shutdown after DFU instead of resetting

Hi ,

I am using the secure bootloader example (SDK 15) as a template for my DFU solution. 

I am experiencing issue with the update process as the device shuts down after the update instead of reset. 

I tried to debug and saw that it reach the function bootloader_reset and run the NVIC_SystemReset function however it then shutdown. 

I am using a LDO for the voltage regulation in the circuit and initially i thought that it is related however i am using an app on the board that uses the same function to reset in order to go to the bootloader and that works fine. 

 

I verified it with the example in the SDK  without changes as well as my modified version. 

Please assist as i dont have any solid lead here.

 thanks in advance, 

Ibrahim

Parents Reply
  • we do not call it off mode, but it is system off mode and seems like this is what you need.

    The system is made to go to deep sleep mode by calling either

    NRF_POWER->SYSTEMOFF = 0x1; //when softdevice is not enabled  OR

    sd_power_system_off(); //when softdevice is enabled.

    a wakeup source needs to be configured before calling this and the wakeup will cause a system reset. This wakeup will not reset the GPIO registers so you will not see the pin status changing.

Children
Related