Skip to main content
SGasp.1
Associate III
November 6, 2023
Solved

Writing data in flash STM32F103

  • November 6, 2023
  • 3 replies
  • 2747 views

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 

This topic has been closed for replies.
Best answer by Tesla DeLorean

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.

3 replies

ST Employee
November 6, 2023

Hello @SGasp.1,

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

Best Regards,

Gwénolé

SGasp.1
SGasp.1Author
Associate III
November 6, 2023

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

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
November 6, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..