This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFu bootloader start with button

Hello, 

I am running 1\nRF5_SDK_17.1.0_ddde560\examples\dfu\secure_bootloader\pca10040_s132_ble\ses example of SDK 17.1.0. Now, I want to update the firmware when it is pressed a button, I know that I need to define NRF_BL_DFU_ENTER_METHOD_BUTTON, but i don´t know how to go on. 

Could somebody explain how it works? 

Thank, 

Paula.

Parents
  • Hi,

    You can find the define NRF_BL_DFU_ENTER_METHOD_BUTTON in sdk_config.h. Set this it to 1 to able to enter DFU mode on button press.

    Use NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN(also in sdk_config.h) for defining which button to use for entering DFU mode. Following options are available.

Reply
  • Hi,

    You can find the define NRF_BL_DFU_ENTER_METHOD_BUTTON in sdk_config.h. Set this it to 1 to able to enter DFU mode on button press.

    Use NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN(also in sdk_config.h) for defining which button to use for entering DFU mode. Following options are available.

Children
No Data
Related