Skip to main content
andrew239955_stm1_stmicro
Associate II
December 21, 2016
Question

Number of write cycles to STM32F030 flash memory

  • December 21, 2016
  • 4 replies
  • 10260 views
Posted on December 21, 2016 at 17:32

I am using the STM32F030, what is the minimum number of write cycles i can make to flash memory for my configuration data?

Also what would it be for the STM32L073RZ?

Thanks

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    December 21, 2016
    Posted on December 21, 2016 at 17:44

    This is something you should be able to find in the Data Sheet

    For the STM32L073RZ, Flash endurance min 10K cycles, EEPROM min 100K cycles, under nominal conditions

    http://www.st.com/content/ccc/resource/technical/document/datasheet/d8/b3/7b/dc/18/22/44/f5/DM00141036.pdf/files/DM00141036.pdf/jcr:content/translations/en.DM00141036.pdf

     

    If you journal the write of your configuration data structure over the sector/block rather than erasing/writing each time, you can extend the life. For something on a battery all the time, consider if the use of NVRAM/BKPRAM would be a wiser choice if the frequency of change is high.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    andrew239955_stm1_stmicro
    Associate II
    December 21, 2016
    Posted on December 21, 2016 at 17:49

    Thanks... i did see this in the Datasheet but thought it was low so wanted to double check!!

    Seb
    ST Employee
    December 21, 2016
    Posted on December 21, 2016 at 17:50

    Look into the datasheet: 

    http://www.st.com/content/ccc/resource/technical/document/datasheet/a4/5d/0b/0e/87/c4/4d/71/DM00088500.pdf/files/DM00088500.pdf/jcr:content/translations/en.DM00088500.pdf

     

    Page 62 : Table 40. Flash memory endurance and data retention

    An artificial way to increase this number by a factor of n is to use n times the size of the configuration data as the number of cycles should be related to erase cycles, or use an external I2C EEPROM to get very high cycling number.

    Hope this helps.

    andrew239955_stm1_stmicro
    Associate II
    December 21, 2016
    Posted on December 21, 2016 at 17:59

    Thanks, yes that does helps.

    Page 62.... 1K.. this is very low!

    waclawek.jan
    Super User
    December 21, 2016
    Posted on December 21, 2016 at 18:03

    That's the price for the price... The STM32F030 is a stripped-down-to-the-bone-for-minimum-cost member of the 'F0x subfamily. That stripdown includes minimized production testing. It had been

    https://community.st.com/0D50X00009XkigqSAB

    as '

    https://web-beta.archive.org/web/20130909234338/http://www.st.com/web/en/press/en/p3444

    '.

    JW

    Technical Moderator
    December 21, 2016
    Posted on December 21, 2016 at 17:56

    Hello

    Barningham.Andrew

    ‌,

    The information aboutflash memory can be found in thedatasheet of your product.

    So, look at the following:

    - STM32F030 datasheet in the

    Memory characteristics section.

    - STM32L073RZ

    http://www.st.com/content/ccc/resource/technical/document/datasheet/d8/b3/7b/dc/18/22/44/f5/DM00141pdf/files/DM00141pdf/jcr:content/translations/en.DM00141pdf

    :Table Flash memory and data EEPROM endurance and retention , in

    the

    Memory characteristics section.

    Best Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    AvaTar
    Senior III
    December 21, 2016
    Posted on December 21, 2016 at 17:57

    The 

    http://www.st.com/resource/en/datasheet/stm32f030rc.pdf

    suggests 1000 cycles - which seems quite a few. Note that this value is guaranteed over the whole temperature range, and 'based on characterization, not production testing'.

    Actual number of possible cycles usually increases exponentially with lower temperatures (min. 1kcycles is at +85°C).

    10 kCycles for the STM32F072 and STM32F073.

    Finding/reading datasheets is an essential skill for embedded engineers ...

    Tesla DeLorean
    Guru
    December 21, 2016
    Posted on December 21, 2016 at 18:21

    1K is rather grim, I wonder how the array/geometry differs from the 10K rated designs to get down to that....

    My guess would be the other designs have extra bits in the wide flash lines committed to ECC, so a single bit doesn't result in a hard failure.

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