cancel
Showing results for 
Search instead for 
Did you mean: 

Writing data in flash STM32F103

SGasp.1
Senior

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 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
GwenoleB
ST Employee

Hello @SGasp.1,

You can manage it through the linker file, by reserving specific pages for your data 😉

Best Regards,

Gwénolé

thankjs @GwenoleB can you provide an example or guide about how to do it? thanks

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..