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

nRF52840 BLE DFU (OTA ) example

Is there any example  for nRF52840 DFU?

Detail steps is better...

I want upgrade my firmware through nRF connect app...

Parents Reply
  • Hi Pony, 

    May I know what are the commands you use to generate and flash the images?

    You have to download nRF-Command-Line-Tools to generate bootloader_setting and merge the image. 

    I usually do like this:

    mergehex -m softdevice.hex bootloader.hex -o merged_SD_bootloader.hex
    nrfjprog --program merged_SD_bootloader.hex --chiperase
    
    nrfutil settings generate --family NRF52840 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex
    mergehex -m hrs_app.hex settings.hex -o merged.hex
    nrfjprog --program merged.hex --sectorerase -r

    When you generate the bootloader setting, you should use --family NRF52840 for nRF52840.

    -Amanda H.

Children
Related