How to put a structure in a specific place in FLASH memory ?
Hi ;)
I'm using STM32 that have 384k flash memory (addres form 0x08000000 to 0x08060000 ).
In address 0x0805FF00 I would like to put a data structure:
struct dataStruct
{
int a;
int b;
} structInFlashMemory = {1, 2};
How can I do this ?
Best regards
-
Sorry to take you off this site but have a look at: http://www.micromouseonline.com/2013/01/13/an-improved-bit-banding-approach/
Just like the article says, modify the linker file to create a section for this data and then declare the variable with the section attribute referring to the section you created.
Please sign in to leave a comment.
Comments
1 comment