AnsweredAssumed Answered

Scatter Brain

Question asked by denehan.joe on Mar 31, 2015
Latest reply on Apr 3, 2015 by AvaTar
I have a bootloader which needs to read an 8 byte char array from the application area to identify it's version information. 

So bootloader is located at 0x08000000
Application firmware at :   0x08020000

the char array will look something like this:

const char software_versions[] = "AB1234XY";

I need the char array to be at a fixed location in the application section so the bootloader always knows where to point.

Is it as simple as:
const char software_versions[] __attribute((at(0x08021000)) = "AB1234XY";

or is there a neater way so fixed variables could have own section before main maybe. I'm not too well up on scatter files.