We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have two seperate hex-files that I would like to merge into a single image. Image A is a bootimage and image B is the application image. Image A starts at 0x00000000, whereas image B starts with an offest of 0x00004000. It is possible to load image B into the flash, and let the system start in image B, meaning that both images work.
The big question is now: Can the two images be merged to a single hex file and how?
For two distinct images, just a text editor, and losing the closing line of the first file so it runs on to the second.
Review also the SRecords application, and the definition of the format.
A trivial grep command (with negated match to have grep emit all non-matching lines) can be used to strip that line from the first file, if you want to merge the hex files automatically during the build proces and doesn't have access to more fancy tools like sed, awk or similar.