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

How to combine All : bl + sd + app + bl-setting

Hello,

I'm trying DFU from here.  It works successfully with nRF52833 DK Board before Appendix 1. 

The question is how to combine all which it is bootloader + sd + application + bl-settings.

I got some hex files:

1) bootloader from sdk/example/dfu/secure_bootloader: secure_bootloader_ble_s140_pca10100_debug.hex

2) sd: s140_nrf52_7.0.1_softdevice.hex

3) application from sdk/example/ble_peripheral/ble_app_hrs: ble_app_hrs_pca10100_s140.hex

4) bootloader_setting.hex is generated as follow: 

nrfutil settings generate --family NRF52 --application ble_app_hrs_pca10100_s140.hex --application-version 1 --bootloader-version 0 --bl-settings-version 2 bootloader_setting.hex

And I want to generate the merged hex file include all - bl + sd + app + bl-setting.
Run the follow commands:

mergehex --merge secure_bootloader_ble_s140_pca10100_debug.hex bootloader_setting.hex ble_app_hrs_pca10100_s140.hex --output hrs_bl_sd_app.hex

I writed hrs_bl_sd_app.hex to nRF52833 DK board. But it shows anything on a RTT viewer after programming device.

nrfjprog --family nRF52 --program hrs_bl_sd_app.hex

What am I missing? Please give a advice.

Regards,

HyunSuk Lee

Parents
  • When I did the sequence below it works. Is it right? I have not done the step 2.

    1> mergehex --merge secure_bootloader_ble_s140_pca10100_debug.hex bootloader_setting.hex ble_app_hrs_pca10100_s140.hex  --output hrs_bl_app.hex
    2> mergehex --merge hrs_bl_app.hex s140_nrf52_7.0.1_softdevice.hex --output hrs_all.hex
    3> nrfjprog -f NRF52 --eraseall
    4> nrfjprog -f NRF52 --program hrs_all.hex -r

Reply
  • When I did the sequence below it works. Is it right? I have not done the step 2.

    1> mergehex --merge secure_bootloader_ble_s140_pca10100_debug.hex bootloader_setting.hex ble_app_hrs_pca10100_s140.hex  --output hrs_bl_app.hex
    2> mergehex --merge hrs_bl_app.hex s140_nrf52_7.0.1_softdevice.hex --output hrs_all.hex
    3> nrfjprog -f NRF52 --eraseall
    4> nrfjprog -f NRF52 --program hrs_all.hex -r

Children
Related