Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

cannot mergehex settings-page, SD, BL and APP in SDK 17.0.2

Hello.

I'm migrating an existing project from SDK 15.3 to SDK 17.0.2.

I'm having trouble updating my build scripts, specifically merging the settings page + BL + SD + APP.

I get this error : "ERROR: The hex files cannot be merged since there are conflicts.".

See below the 3 steps in creating the image, including the failure at the end.

please assist.

## create_settings_page


<python path>/scripts/nrfutil settings generate --family NRF52840 --application <output path>/Exe/my_app.hex --application-version 4 --bootloader-version 2 --bl-settings-version 1 <output path>/Exe/settings.hex

Generated Bootloader DFU settings .hex file and stored it in: <output path>/settings.hex

Bootloader DFU Settings:
* File: <output path>/settings.hex
* Family: NRF52840
* Start Address: 0x000FF000
* CRC: 0x0A110850
* Settings Version: 0x00000001 (1)
* App Version: 0x00000004 (4)
* Bootloader Version: 0x00000002 (2)
* Bank Layout: 0x00000000
* Current Bank: 0x00000000
* Application Size: 0x00034238 (213560 bytes)
* Application CRC: 0x80B8A702
* Bank0 Bank Code: 0x00000001
* Softdevice Size: 0x00000000 (0 bytes)
* Boot Validation CRC: 0x00000000
* SD Boot Validation Type: 0x00000000 (0)
* App Boot Validation Type: 0x00000000 (0)


## create_dfu_app_package


<python path>/scripts/nrfutil pkg generate --hw-version 52 --application-version 4 --application <output path>/Exe/my_app.hex --sd-req 0x0100 --key-file <src_path>/private.key <output path>/Exe/my_app.zip

Zip created at <output path>/Exe/my_app.zip


## create_app_bl_sd_settings_binary


mergehex --version
mergehex version: 9.8.1
mergehex --merge <output path>/Exe/my_app.hex <output path>/Exe/settings.hex <sdk path>/s140_nrf52_7.2.0_softdevice.hex --output <output path>/Exe/temp_output.hex
1> Parsing input hex files.
1> Merging files.
1> ERROR: The hex files cannot be merged since there are conflicts.
1>

mergehex --merge <output path>/Exe/temp_output.hex <bootloader output path>/secure_bootloader_ble_s140_pca10056.hex --output <output path>/Exe/my_app.hex
1> Parsing input hex files.
1> ERROR: One of the files to merge cannot be found.

Related