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)

  • Ok, in the buttonless example I removed the check of the peer_manager and also commented the peer_manager related functions... and now I can't write on the service, also I can't activate the notifications. I'm trying to don't modify the buttonless_DFU service to keep it intact so i don't have problems later, but I think I will need to modify it...

Reply Children
No Data
Related