Hello,
I want to add DFU fonction on my custom application. The final goal is to update my firmware from my custom app (not just once).
My setup is : SDK11 - nRF52832 - MacOS environnement - armgcc
Is it the correct way to do that :
- Flash the softdevice :
nrfjprog --program /home/name/Desktop/Workspace/nRF52832/nRF5_SDK_11.0.0/examples/dfu/bootloader/hex/dfu_dual_bank_ble_s132_pca10040.hex -f nrf52 --chiperase
nrfjprog --reset -f nrf52
-
Device is advertising with new name : DFUTarg
-
Prepare the zip file ( for the nRF Toolbox )
nrfutil dfu genpkg --application TTblink.bin --application-version 0xff
--dev-revision 1 --dev-type 1 --sd-req 0xfffe TTblink.zip
- Is it necessary to modify the code of blinky ? I'm using the blinky app without DFU
- When I use nrFToolbox the firmware is correctly updated.
- Is the softdevice :
s132_nrf52_2.0.0_softdevice.hex
the same of
dfu_dual_bank_ble_s132_pca10040.hex
( with DFU more) ? Softdevice + bootloader ?
Is it the correct way ? I don't understand why is it necessary to change the code of the app. Can I let my app without modification ?
Thank you very much.