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
  • Not sure I have them to hand.

    Binary files are trivially easy to manage with basic C library functions like fopen/fclose/fread/fwrite.

    .HEX files can be merged by hand in a text editor, or automated via an AWK/PERL script.

    If you need something that manages these types of files look at tools like SRecords

Reply
  • Not sure I have them to hand.

    Binary files are trivially easy to manage with basic C library functions like fopen/fclose/fread/fwrite.

    .HEX files can be merged by hand in a text editor, or automated via an AWK/PERL script.

    If you need something that manages these types of files look at tools like SRecords

Children