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

sdk 12 buttonless dfu without peer_manager

Hi,

I was trying to integrate a more simple version of the buttonless dfu example on my application. My first step was to get rid of the peer_manager and also the flash (FDS) modules but I don't know if those are really important... I want to know which is the flag that the bootloader check to execute the DFU or to bypass it.

Thank you!

Parents
  • Hi Vea,

    For now buttonless application only needs to update the bootloader setting to set s_dfu_settings.enter_buttonless_dfu = true; and then simply trigger a reset after the the writing is finish. In our experimental_ble_app_buttonless_dfu example can find we start the process by calling enter_bootloader() to store the setting to flash, then we wait for the call back (flash_callback() ) then we call sd_ble_gap_disconnect, and when we disconnected, we reset (BLE_GAP_EVT_DISCONNECTED event in ble_dfu_on_ble_evt() ).

    So no peer manage or fds needed (only fstorage needed)

  • And what is the purpouse of enabling the notification before writting 0x01 to the service? Without the peer manager the notification isn't working...

Reply Children
No Data
Related