cancel
Showing results for 
Search instead for 
Did you mean: 

How to Split the Flash memory in STM32f103c8t6

NO_ONE
Associate II

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.

1 REPLY 1

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