Skip to main content
NO_ONE
Associate
December 13, 2019
Question

How to Split the Flash memory in STM32f103c8t6

  • December 13, 2019
  • 1 reply
  • 1167 views

I want to know how to split the flash memory of the stm32f103c8t6 , The one part of memory is used to store the firmware & other part is used to store the settings & configuration through external user interface exe file. Please any one help in these .

I don't know the exact term for these kind of splitting.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 13, 2019

Look at how large the sectors/pages are.

Shrink the memory size described in the linker script or scatter file so the pages you want to use are at the end of the flash memory space.

The STM32F103C8T6 is 64KB as I recall, pages perhaps 1KB (check the manual). Tell the linker you've only got 63KB, which will give you the page to manage directly.

You can then access a structure you create in the memory, and cast a pointer to it at 0x0800FC00

Add additional code to erase and write the page with new content, reflecting your configuration.

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