[SOLVED] Create a variable at an absolute address in flash
Posted: Thu Jul 23, 2020 3:48 pm
Hi,
I would like to know how we can create a variable at an absolute address in the binary file, like the definition for ARM compiler:
const uint32_t variable __attribute__((at(0x08010000))) = 0X15056687;
http://www.keil.com/support/man/docs/ar ... 981140.htm
I tried with the linker(.ld) but the addresses are mapped in flash and I don't know which address to use.
At the end, I would like to have my variable at a specified offset in my binary file , to flash it with my firmware .
And would like to access and modify the value from my bootloader and my firmware.
I would like to know how we can create a variable at an absolute address in the binary file, like the definition for ARM compiler:
const uint32_t variable __attribute__((at(0x08010000))) = 0X15056687;
http://www.keil.com/support/man/docs/ar ... 981140.htm
I tried with the linker(.ld) but the addresses are mapped in flash and I don't know which address to use.
At the end, I would like to have my variable at a specified offset in my binary file , to flash it with my firmware .
And would like to access and modify the value from my bootloader and my firmware.