Block size and count on littlefs partition on ESP32-C3 #12841
-
Hello everyone, I'm working on building the filesystem externally in order to produce a bin file that includes the MicroPython build with the integrated filesystem. What would be the appropriate block size and block count for the LittleFS partition? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Block size 256 seems to be a value that is good in most conditions (alternative block size 512 probably also quite good). Block count will depend then on how much space you will assign to the LittleFS partition afaiu. |
Beta Was this translation helpful? Give feedback.
-
On ESP32 at least, the default block size for LFS is 4096 bytes. |
Beta Was this translation helpful? Give feedback.
-
I have downloaded the original fs created by MicroPython and I can read using littlefs-tools Python package on linux using block size 4096 and block count 512. Now, I am trying to create that partition from Linux and upload to ESP32-C3, and and MicroPython says:
The comand to create littlefs image file I used is: |
Beta Was this translation helpful? Give feedback.
-
. |
Beta Was this translation helpful? Give feedback.
In ESP32-c3 block size is 4096 and block count is 512. I started a new topic with the question about creating the filesystem.