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)?
Wear Levelling library sector size
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Wear Levelling library sector size
--
Somesh Burkule
Somesh Burkule
Re: Wear Levelling library sector size
as i know its a byte, not kilobytes
Re: Wear Levelling library sector size
Yes. ESP32 SPI Flash sector size is 4096 Bytes only. So, You need to erase minimum 4096 bytes to write data into particular section.burkulesomesh43 wrote: ↑Sat Sep 01, 2018 4:22 pmHi 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)?
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
Ritesh Prajapati
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Wear Levelling library sector size
Got it.Ritesh wrote: ↑Mon Feb 25, 2019 2:30 amYes. ESP32 SPI Flash sector size is 4096 Bytes only. So, You need to erase minimum 4096 bytes to write data into particular section.burkulesomesh43 wrote: ↑Sat Sep 01, 2018 4:22 pmHi 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)?
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.
Thank you.
--
Somesh Burkule
Somesh Burkule
Who is online
Users browsing this forum: ESPBoards and 190 guests