cancel
Showing results for 
Search instead for 
Did you mean: 

Number of write cycles to STM32F030 flash memory

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

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

Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
AvaTar
Lead
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 ...

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!!

Posted on December 21, 2016 at 17:59

Thanks, yes that does helps.

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

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 21, 2016 at 18:27

Not sure the 1K vs 10K impacts tester time, unless they don't do at least one erase/write/erase cycle, because they say the number comes from characterization of the silicon. ie they destructively tested several batches of devices from corners of the process window, and the failures lead them to be comfortable with specifying only 1K cycles.

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