Skip to main content
johnspeth9
Associate III
November 7, 2008
Question

Flash page write example code?

  • November 7, 2008
  • 2 replies
  • 734 views
Posted on November 07, 2008 at 15:36

Flash page write example code?

    This topic has been closed for replies.

    2 replies

    16-32micros
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:51

    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.

    johnspeth9
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:51

    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 Speth