-
Notifications
You must be signed in to change notification settings - Fork 99
NFAQ (Not Frequently Asked Questions)
Easy...
First you need to find out where the SPIFFS is in your image (if you use images from rdzsonde.moo.com dated before Oct 27, 2019, or using an old version of Arduino IDE, its probably at 0x291000; otherwise, it should be at 0x290000). You can just pick a value and try, or you can read the ESP's partition table:
python <path>/esptool.py -p <port> -b 460800 read_flash 0x8000 0xC000 parttable.bin
python <path>/gen_esp32part.py parttable.bin parttable.csv
grep spiffs parttable.csv
(replace <path>
with the place where these two tools are installed, and <port>
with the serial port your board is connected to). You should get an output such as:
spiffs,data,spiffs,0x290000,1472K,
Second, you can extract the SPI flash file system (if your starting address is different to 0x290000, replace 0x290000 with the address you obtained above, and 0x170000 with the size until the end of the flash (0x400000-start address, or use above size 1472k=1472*1024byte=1507328=0x170000). For start at 0x291000, the size is 0x16F000.
python esptool.py -p /dev/tty.SLAB_USBtoUART -b 460800 read_flash 0x290000 0x170000 flash.bin
mkspiffs -b 4096 -p 256 -s 1507328 -u out flash.bin
You will get all files in the "out" folder.