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

Merge hex file error

Dear Nordic Team,

Thanks for support.

I want to merge softdevice hex,application hex and bootloader hex. I am using windows 7 OS and my SDK version nRF5_SDK_11.0.0_89a8197.

I copy the all three hex files and mergehex.exe in one folder (D:\Merge)and put the rename like SD.hex, AP.hex and BT.hex

Then i am doing merge process using command promt i am getting below error.

Please notify what i am doing wrong.

C:\Users\user>D:

D:\>Merge\mergehex.exe --merge SD.hex BT.hex AP.hex --output out.hex
Parsing input hex files.
Merging files.
ERROR: The hex files cannot be merged since there are conflicts.

D:\>
Parents
  • The error means they are region(s) overlapping. Did you try to run the application before ? Could you try to merge the SoftDevice with the application only to see if you get the same error ?

    If yes, this means that the start address/offset of your application is not set correctly. The starts address depends on the SoftDevice you use. You will find that information in the SoftDevice spec.

    If you use Keil as IDE, have a look at this post to see how to configure the areas. You could also have a look at the AP.hex file (open it as a text file) to check the start address you use. More detailed information are available on this post and here.

Reply
  • The error means they are region(s) overlapping. Did you try to run the application before ? Could you try to merge the SoftDevice with the application only to see if you get the same error ?

    If yes, this means that the start address/offset of your application is not set correctly. The starts address depends on the SoftDevice you use. You will find that information in the SoftDevice spec.

    If you use Keil as IDE, have a look at this post to see how to configure the areas. You could also have a look at the AP.hex file (open it as a text file) to check the start address you use. More detailed information are available on this post and here.

Children
Related