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

DFU

Hi, 

i am working on nrf52dk . i want to do DFU with BLE can you provide any document link. 

Parents Reply Children
  • 1.using mergehex to mergehex files

    $ mergehex -m C:/Users/techn/Desktop/dfu/secure_bootloader_ble_s132_pca10040.hex C:/Users/techn/Desktop/dfu/s132_nrf52_
    7.2.0_softdevice.hex -o C:/Users/techn/Desktop/dfu/bootloader.hex
    Parsing input files.
    Merging file "secure_bootloader_ble_s132_pca10040.hex" into output.
    Merging file "s132_nrf52_7.2.0_softdevice.hex" into output.
    Storing merged file.

    2.command i am using for dfu pakage generate.


    nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_blinky_pca10040_s132.hex --sd-req 0x0101 --key-file private.key app_dfu_blinky.zip


    Zip created at app_dfu_blinky.zip

  • Hi, 

    Please use bootloader debuger version under SDK\nRF5_SDK_17.0.2\examples\dfu\secure_bootloader\pca10040_s132_ble_debug, and provide the log from J-Link RTT Vierwer or Segger.   

    I would suggest you compile the ble_app_blinky_pca10040_s132 project and test the image under nRF5_SDK_17.0.2\examples\ble_peripheral\ble_app_blinky\pca10040\s132\ses\Output\Release\Exe

    -Amanda H.

  • yes it works with "pca10040_s132_ble_debug". not with "pca10040_s132_ble".

  • Hi, 

    They are almost the same except for the debug function, so pca10040_s132_ble should work. I have tested both can work. Erase the kit (nrfjprog --eraseall) before program the image. 

    -Amanda H.

  • can you verify my steps.

    1.merged hex file secure bootloader and soft device used with following command.

    "mergehex -m C:/Users/techn/Desktop/dfu/secure_bootloader_ble_s132_pca10040.hex C:/Users/techn/Desktop/dfu/s132_nrf52_7.2.0_softdevice.hex -o C:/Users/techn/Desktop/d fu/bootloader.hex"

    2.generated dfu pkg with following command.

    "nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_blinky_pca10040_s132.hex --sd-req 0x0101 --key-file private.key app_dfu_blinky.zip
    Zip created at app_dfu_blinky.zip"

    3.programmed generated dfu zip file with mobile app "nordic_connect".

    4.after the programming done . nrf52dk advertise "dfutarg". can you tell any thing i am missing in  these steps

Related