2023-11-06 02:29 AM
Hi amazing community.
I would like to write some data in the flash memory of the following mcu STM32F103
I know there are some dedicated pages for such purpose.
How can I guarantee or understand that the future code that i will develop and it will be saved for sure always
in the flash memory it won't overwrite the pages that i have used for saving the data?
Thanks a lot
Solved! Go to Solution.
2023-11-06 03:47 AM
The MEMORY section describes base address and size of FLASH the Linker can use, shrink that by several KB to carve out space it can't allocate.
2023-11-06 02:39 AM
Hello @SGasp.1,
You can manage it through the linker file, by reserving specific pages for your data ;)
Best Regards,
Gwénolé
2023-11-06 03:06 AM
thankjs @GwenoleB can you provide an example or guide about how to do it? thanks
2023-11-06 03:47 AM
The MEMORY section describes base address and size of FLASH the Linker can use, shrink that by several KB to carve out space it can't allocate.