2008-11-07 06:36 AM
Flash page write example code?
2011-05-17 03:51 AM
Hi everybody-
I'm looking for example firmware source code that demonstrates how to use the STM32 firmware library to write to a flash memory page. I just can't seem to find it through google or the STM32 MCU site. My application is for my firmware to reserve a flash memory page for holding calibration constants. The calibration constants that will be loaded with the production firmware will be default values which will eventually be overwritten in the cal constant page by new values obtained in the calibration lab and loaded through the USB. The runtime code will remain unchanged in the remaining flash pages. I believe that's a pretty common scenario. Can anyone point me to a flash page write firmware example using the STM32 firmware library? Thanks, John Speth2011-05-17 03:51 AM
Dear John,
You can refer to this advanced Application Note AN2594 : EEPROM emulation in STM32F101xx and STM32F103xx microcontrollers :http://www.st.com/stonline/products/literature/an/13718.pdf
http://www.st.com/stonline/products/support/micro/files/an2594.zip
Else you can refer to this basic and simple example in ST FW Library STM32F10xFWLib_v2.0.3/FWLib\examples\FLASH\Program after you have installed the package in your PC. Hope this helps you. Cheers, STOne-32.