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)

  • Hi Vea,

    It's my mistake in the previous response. In the new bootloader in SDK v12 we actually send notification back before we disconnect and start the bootloader.

    So you need to enable CCCD so that the notification can be sent. But I don't see any reason why peer manager needed here.

Reply Children
No Data
Related