I have a binary blob that I want to link into my binary.
In IAR Embedded Workbench I can specify a raw binary image, assign it a symbol (variable name) and define the link section and alignment. This through the project options/Linker/Input dialog.
In GCC/binutils I can use the objcopy to make an elf object file out of the binary blob, e.g. $ objcopy -I binary -O elf64-x86-64 -B i386 --rename-section .data=sectionname inbinaryblob outelfobject This elf object I can then link into my binary.
How to go about this in ARM/KEIL uVision 5 and the arm compiler?
I haven't really looked at what options exists. I have normally selected the "standard" solution of converting any binary data into const hex data in a uint8_t C array, and then optionally either specified a section name or placed the array in a separate source file, if I have seen a need to control where to link it.
Another way:
www.keil.com/.../armasm_dom1361290017052.htm