Hi,
I am using nrf52832 development board with s132 softdevice and SDK17. I want to add the DFU service to this application so that I can update the firmware to the device. How can I add the DFU service to the ble_app_multilink_central example code?
Hi,
I am using nrf52832 development board with s132 softdevice and SDK17. I want to add the DFU service to this application so that I can update the firmware to the device. How can I add the DFU service to the ble_app_multilink_central example code?
Hi,
Could you let me know what's your use case is ?
How do you plan to get the central device to enter DFU mode ? Will you use a BLE command to switch the device to DFU mode ? or you plan to switch it to DFU mode by pressing a physical button ?
If you plan to use a button to enter DFU mode then it's quite simple that you just need to flash the bootloader.
Hi,
Could you let me know what's your use case is ?
How do you plan to get the central device to enter DFU mode ? Will you use a BLE command to switch the device to DFU mode ? or you plan to switch it to DFU mode by pressing a physical button ?
If you plan to use a button to enter DFU mode then it's quite simple that you just need to flash the bootloader.
Hi,
The use case is to update the firmware whenever I make changes in the existing code. I need to enter the DFU mode from nrf connect by clicking the dfu icon.(Buttonless). If I flash the buttonless_dfu code I wont be in central mode. So I need the steps to add the DFU service in the ble_app_multilink_central code.
If you want to do buttonless DFU, you would need to add a functionality of advertising and allow the central to be connected by a phone. You would also need to add the buttonless service into ble_app_multilink_central.
Please study the ble_app_buttonless_dfu example on how the service is declared and used. The files you need are ble_dfu.c and either ble_dfu_bonded.c or ble_dfu_unbonded.c depends on if you support bond or not.
Thanks for the suggestion. I have added the dfu service in the central code and its working fine. It would be better to have a document from nrf side for adding the dfu in an existing application.
I'm glad that it's working now :) We will try to improve our documentation and example.