Hi. I want to save special data at the first address of the last sector, i.e. at address 0x10007000.
I do it like this
const unsigned char CANNodeAddress__attribute__((section(".ARM.__at_0x00007000"))) = (unsigned char)CAN_ADDR_ANTx;
My map file shows that CANNodeAddress is the last symbol in the memory map.
0x000039c4 0x00000020 Data RO 1058 Region$$Table anon$$obj.o 0x000039e4 0x0000361c PAD 0x00007000 0x00000001 Data RO 57 .ARM.__at_0x00007000 main.o
The question is, why does my binary file created with fromelf utility contains 123 bytes after the CANNodeAddress position. The binary file ends with 0xAAAAAAAA and not my CANNodeAddress variable.
This creates a problem because I cannot put my data at the end of the last sector because linker complains there is not enough space in ROM.
Thanks.