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.
Hi
I have trying to see if I could find any linker switch or code macro, to "import" a file from my PC into my resulting HEX/BIN/AXF file when building my application.
Is this possible.?
Perfered would be to have a variable(a pointer) to point to the imported data after the build.
/Thomas
How about an assembler file containing an INCBIN directive?
infocenter.arm.com/.../armasm_caccaghf.htm
Regards Marcus http://www.doulos.com/arm/
Cool Marcus, I didn't know that one!
HI.
that is good infomartion.
tnx.
Always yo're freind.
Zeusti.
INCBIN was a really cool concept that I didn't know about.
The important thing here is that it is an ARM-unique method, so in case the used tools doesn't have anything similar, the fallback route would be to run a helper program that creates a source file with C or assembler constants.
That's cool. Thanks Marcus
By the way. How can we reference it in the application itself. With native method we can reference it by variable containing binary data, so how can we treate file name as C variable?... Can anyone clearify?
Similar to how you let a C program access a variable declared in an asembler file, you should be able to specify a label before the include directive, and then in C have a extern declaration naming this label.