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

What can I do if I want to dfu Bootloader and Application

  1. my company already have firmware with nRF51 and SDK11
  2. recently, we made new Firmware
  • watchdog timer feature
  • so we modified application and bootloader

now, we want to make zip file for DFU. so end user can upgrade their firmware of device.

Question 1. how can I make a zip file for bootloader+application version

  • in manual, it said, we cannot make BL+APP version zip. is it right?

Question 2. our old firmware had to make hex file with BL+SD+APP and "app_valid_setting_apply.hex" using mergehex.exe

as I know "app_valid_setting_apply.hex" is provided from Nordic and it prevents loading bootloader instead of Application, just after firmware programming.

If I had to make BL+APP version zip file, how can I make it with "app_valid_setting_apply" using nrfutil.exe

  • I tried BL+APP+SD zip file with nrfutil and DFU OTA

    • but it didnot work well. I think when it boots, Bootloader is working, instead of Application
    • that's why I thought app_valid_settings_apply.hex might needed

    Anyway I will try just you told me to do.

    • Make BL+APP zip file and DFU OTA.

    I will try and comment the result.

    thanks for your help.

  • Hung Bui.

    After long holiday in Korea, I tried and failed.

    Let me clear my situation.

    1. My device has firmware with BL+APP+SD+ (SD130 v2.0.0, SDK11)

    2. I make firmware with app_valid_setting_apply.hex which make Application running (not Bootloader)

    3. I want to upgrage Bootloader and Application (watchdog timer added version) via DFU OTA (using nRF connect app of Android)

    4. so, I make BL+APP zip file with nrfutil.exe

    • nrfutil.exe dfu genpkg --bootloader hex\inoon_wdt_dfu_dual_bank_ble_s130_pca10028.hex --application hex\nrf51822_xxac_s130_v3.1.8.hex hex\gper2_bl_app_v3.1.8.zip
    1. did DFU, but device is not working
  • Hi,

    Have you followed my suggestion to do BL and Application update separately first ? Update BL and then Application ?

    Have you tried to flash your new application + new bootloader using the cable (not DFU) and verify that it's working ?

    You mentioned device not working meaning DFU process worked ? Have you tried to read the hex out and compare to if you flash it using the cable ?

    1. using J-Link, BL programing and Application is okey. no problem
    2. Problem is wireless DFU to my customer's device, which is already around the world.
    3. not tried to read hex out and compare. - could you let me know how to do it?
  • Hi Jeong,

    I afraid BL+APP may not fully supported, my suggestion is to try BL update first and then do APP update separately. It may take some more time but it's the safest way of doing that.

    To read out flash, you can use nrfjprog in command line simply write nrfjprog.exe --readcode filename.hex

Related