Page 1 of 1

number of write cycles used by flash

Posted: Thu Jun 14, 2018 12:12 pm
by hemant.chaudhari
Hello Team,

I am using wroom32 module. If my flash sector size is 4KBytes and If I cleared the sector and write the page having size 32bytes.and then pages having size 32 bytes until this sector gets full. How many write cycles will be consumed in this process?

If I have to write continuous data 32bytes per minute on flash,is there any method by which I can save the write cycles of my flash?

Thanks in advance.

Re: number of write cycles used by flash

Posted: Thu Jun 14, 2018 3:14 pm
by WiFive
Flash lifetime would be based on write+erase cycles so it only counts when you erase.

Re: number of write cycles used by flash

Posted: Fri Jun 15, 2018 5:46 am
by hemant.chaudhari
Thanks....I want to know one more thing how much MBytes of Flash is available out of 4MB in order to store user data.

Re: number of write cycles used by flash

Posted: Fri Jun 15, 2018 11:24 am
by WiFive
It depends on how you set up partitions

https://esp-idf.readthedocs.io/en/lates ... ables.html

Re: number of write cycles used by flash

Posted: Tue Jun 19, 2018 11:35 am
by hemant.chaudhari
if I am using default partition ,the details are as follows

# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,

So if I want to create a page and write bytes on it.How to create an page and set it's attributes/states and while writing values should I have to care about key-value pair or it will be taken care by esp itself?