Do I need to read the entire LittleFS partition with esptool to retrieve all files in it?
Posted: Fri Apr 04, 2025 7:37 am
The partition I use for my LittleFS is called spiffs:
Currently I dump a littlefs.bin to my computer and extract its content to a folder on my computer to view the files and folders in LittleFS. To dump the spiffs partition, I currently use the command
This is very slow because the partition is so large. I was wondering: Since I use less than 1% of the LittleFS storage space, can I somehow only read the relevant parts (where the actual file data is) of the partition? Or do I always need to read the entire partition?
Code: Select all
Name , Type , Subtype, Offset , Size , Flags
nvs , 0x1 , 0x2 , 0x9000 , 0x5000 ,
otadata , 0x1 , 0x0 , 0xe000 , 0x2000 ,
app0 , 0x0 , 0x10 , 0x10000 , 0x140000 ,
app1 , 0x0 , 0x11 , 0x150000 , 0x140000 ,
spiffs , 0x1 , 0x82 , 0x290000 , 0x160000 ,
coredump , 0x1 , 0x3 , 0x3f0000 , 0x10000 ,
Code: Select all
esptool.exe --port <serial_port> --baud <baud_rate> read-flash 0x290000 0x160000 <bin_file>