Question
Scatter Brain
Posted on March 31, 2015 at 14:32
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 0x08000000Application firmware at : 0x08020000the 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.