Wear Levelling library sector size

burkulesomesh43
Posts: 132
Joined: Tue Aug 14, 2018 6:21 am
Location: India

Wear Levelling library sector size

Postby burkulesomesh43 » Sat Sep 01, 2018 4:22 pm

Hi all,
I am comfused about choosing the sector size in wear levelling example.
I want to use near about 250kb of flash for file system so I have to use sector size 512kb because 4096kb sector size rquires minimum 512kb of flash for file system.
but I actually very confused that what is the difference in this sector sizes(CONFIG_WL_SECTOR_SIZE 512kb & 4096kb)?
--
Somesh Burkule

falke5
Posts: 3
Joined: Fri Feb 22, 2019 2:49 pm

Re: Wear Levelling library sector size

Postby falke5 » Sun Feb 24, 2019 10:43 am

as i know its a byte, not kilobytes

Ritesh
Posts: 1085
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Wear Levelling library sector size

Postby Ritesh » Mon Feb 25, 2019 2:30 am

burkulesomesh43 wrote:
Sat Sep 01, 2018 4:22 pm
Hi all,
I am comfused about choosing the sector size in wear levelling example.
I want to use near about 250kb of flash for file system so I have to use sector size 512kb because 4096kb sector size rquires minimum 512kb of flash for file system.
but I actually very confused that what is the difference in this sector sizes(CONFIG_WL_SECTOR_SIZE 512kb & 4096kb)?
Yes. ESP32 SPI Flash sector size is 4096 Bytes only. So, You need to erase minimum 4096 bytes to write data into particular section.

So, your assumption is not correct as per your calculation.

Please find below link for more details regarding that.

https://docs.espressif.com/projects/esp ... flash.html

Let me know if you still have any confusion or doubt for that.
Regards,
Ritesh Prajapati

burkulesomesh43
Posts: 132
Joined: Tue Aug 14, 2018 6:21 am
Location: India

Re: Wear Levelling library sector size

Postby burkulesomesh43 » Tue Jun 11, 2019 10:30 am

Ritesh wrote:
Mon Feb 25, 2019 2:30 am
burkulesomesh43 wrote:
Sat Sep 01, 2018 4:22 pm
Hi all,
I am comfused about choosing the sector size in wear levelling example.
I want to use near about 250kb of flash for file system so I have to use sector size 512kb because 4096kb sector size rquires minimum 512kb of flash for file system.
but I actually very confused that what is the difference in this sector sizes(CONFIG_WL_SECTOR_SIZE 512kb & 4096kb)?
Yes. ESP32 SPI Flash sector size is 4096 Bytes only. So, You need to erase minimum 4096 bytes to write data into particular section.

So, your assumption is not correct as per your calculation.

Please find below link for more details regarding that.

https://docs.espressif.com/projects/esp ... flash.html

Let me know if you still have any confusion or doubt for that.
Got it.
Thank you.
--
Somesh Burkule

Who is online

Users browsing this forum: Baidu [Spider], jsam589 and 14 guests