number of write cycles used by flash

hemant.chaudhari
Posts: 6
Joined: Wed Jun 13, 2018 11:48 am

number of write cycles used by flash

Postby hemant.chaudhari » Thu Jun 14, 2018 12:12 pm

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.

WiFive
Posts: 1760
Joined: Tue Dec 01, 2015 7:35 am

Re: number of write cycles used by flash

Postby WiFive » Thu Jun 14, 2018 3:14 pm

Flash lifetime would be based on write+erase cycles so it only counts when you erase.

hemant.chaudhari
Posts: 6
Joined: Wed Jun 13, 2018 11:48 am

Re: number of write cycles used by flash

Postby hemant.chaudhari » Fri Jun 15, 2018 5:46 am

Thanks....I want to know one more thing how much MBytes of Flash is available out of 4MB in order to store user data.

WiFive
Posts: 1760
Joined: Tue Dec 01, 2015 7:35 am

Re: number of write cycles used by flash

Postby WiFive » Fri Jun 15, 2018 11:24 am

It depends on how you set up partitions

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

hemant.chaudhari
Posts: 6
Joined: Wed Jun 13, 2018 11:48 am

Re: number of write cycles used by flash

Postby hemant.chaudhari » Tue Jun 19, 2018 11:35 am

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?

Who is online

Users browsing this forum: No registered users and 1 guest