cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205RBT6 flash as eeprom

aamirali641989
Associate II
Posted on April 06, 2014 at 06:54

I need 10K eeprom.   I am planning to use flash for this. I am using keil

1. How to separate part of memory for eeprom , I mean where to mention it. So that it don't get overwritten by hex file.

2. Is there any exapmle code for this.
3 REPLIES 3
Posted on April 06, 2014 at 07:35

ST has posted

http://www.st.com/web/en/catalog/tools/PF257897

, but I don't think it will work in the manner you need.

If you want to store configuration/calibration type data in flash, your best route would be to break the memory space up to free one of the 16KB sectors near the front of flash. This might be achieved by using the first 16KB for a Boot Loader, and pushing you application further into memory, perhaps to the 64 or 128KB boundaries. The

http://www.st.com/web/en/catalog/tools/PF257899

may help with this partitioning.

Alternatively, you could create a custom scatter file, to allow the linker to create a void in the FLASH image to accommodate the sector(s) you want to write data into.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
aamirali641989
Associate II
Posted on May 13, 2014 at 21:48

Preferably better method may be to craete custom scatter file. That I will do.

But how to read/write particular flash sectors of STM205RBT6. Is there any example code for it.

Posted on May 13, 2014 at 22:00

STM32F2xx_StdPeriph_Lib_V1.1.0\Project\STM32F2xx_StdPeriph_Examples\FLASH\Program\main.c

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