This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Include binary files at an absolute address

I've to include two binary files, one at address 0x2000 and other at 0x3000. These are absolute address in the CODE section. These files includes ARM cortex M0 firmwares which can be switched to using a bootloader code.

I included an image.s file in my "User group" in my Keil Project workspace.

;/*------------------ image.s -----------------*/

AREA _image, CODE, READONLY

INCBIN ./Objects/blue2000.bin

INCBIN ./Objects/red3000.bin

END

____________________________________________________

How to locate these binary images at absolute address?

Parents
  • Thanks Pier!
    Can you please elaborate on how to merge at a .Hex or .bin level :) ? I'm building a multi-app bootloader to boot either of the two firmwares. The two app firmwares here are compiled using absolute ROM addresses. This is done in Keil by setting the address in "Options for target"->"Target"->"IROM1:" -> "Start" addesses to respective start address . So how to combine bootloader.hex (starts at 0x0), blue2000.hex(starts at 0x2000) and red3000.hex (starts at 0x3000)?

Reply
  • Thanks Pier!
    Can you please elaborate on how to merge at a .Hex or .bin level :) ? I'm building a multi-app bootloader to boot either of the two firmwares. The two app firmwares here are compiled using absolute ROM addresses. This is done in Keil by setting the address in "Options for target"->"Target"->"IROM1:" -> "Start" addesses to respective start address . So how to combine bootloader.hex (starts at 0x0), blue2000.hex(starts at 0x2000) and red3000.hex (starts at 0x3000)?

Children