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
-
burkulesomesh43
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
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.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)?
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
-
burkulesomesh43
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Wear Levelling library sector size
Got it.Yes. ESP32 SPI Flash sector size is 4096 Bytes only. So, You need to erase minimum 4096 bytes to write data into particular section.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)?
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: Qwantbot and 7 guests