How to save an array to a particular flash position at compile/link time?
I'm using an STM32F103C8 and I have an array of unit8_t that I want to save to a particular position in flash memory, where such position is specified at compile/link time.
Eg. suppose the application resides in flash memory from position 0x08000000 to position 0x08004000, and then I want this array to not live with the rest of the application, but to start after the application ends in memory, at flash location 0x08004000.
And then at runtime I want to be able to modify the array by using flash write operations to that particular flash memory location and read/access the array by using flash read operations to the same flash memory location.
How can that be done?
