Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bootloader Deep Sleep

Wich is the proper way to bring bootloader into deep sleep?

I'm using a modified version of the BLE Secure DFU Bootloader (SDK 14.1.0) for the nrf52810. I have added button support for trigger the sd_power_system_off function and the wakeup event. In this way I'm able to put the system in sleep mode. By pushing the button it starts advertising again and it is possible to establish connection, but not starting a DFU.

Can you give me some advice to fully understand how wakeup works and how to use it with bootloader?

Thank you

Parents
  • Hello,

    A device will typically enter sleep from the main application (after advertisment timeout,etc.), and therefore not require any changes in the bootloader code, but you may need to disable the BOOTLOADER_BUTTON pin if you only have one button in your design, bootloader will enter DFU mode on startup if you use the same pin for wake-up. 

    BOOTLOADER_BUTTON pin is not required if you implement support for buttonless dfu in your main app. 

     

  • Hello,

    I'm using buttonless dfu so I've disabled the BOOTLOADER_BUTTON pin. But actually I want to enter sleep from the bootloader when there is no main application.

    I'm able to enter sleep from the inactivity timeout handler and also from the button handler, and after wakeup (from button) connect again to central device. But when I enter sleep from the button handler is not  possible to start a DFU process again. 

    I'd like to understand how the wakeup works when there is only bootloader and no application

Reply
  • Hello,

    I'm using buttonless dfu so I've disabled the BOOTLOADER_BUTTON pin. But actually I want to enter sleep from the bootloader when there is no main application.

    I'm able to enter sleep from the inactivity timeout handler and also from the button handler, and after wakeup (from button) connect again to central device. But when I enter sleep from the button handler is not  possible to start a DFU process again. 

    I'd like to understand how the wakeup works when there is only bootloader and no application

Children
Related