I'm trying to use the official SPIFFS wrapper included in the latest framework but my program doesn't work... In the past I used the loboris implementation without any problems.
My source folder contains only one file (readme.txt) with a line in it:
First I prepared the image using the latest mkspiffs by igrr, https://github.com/igrr/mkspiffs - the image is attached to this post (renamed to .txt):
Code: Select all
./mkspiffs.exe -c ../spiffs_content/ -b 4096 -p 256 -s 0x100000 ../spiffs_content.bin
Code: Select all
python $IDF_PATH/components/esptool_py/esptool/esptool.py --chip esp32 --port COM12 --baud 115200 write_flash -z 0x180000 ../spiffs_content.bin
In my program I only mount the partition, check if the file exists and - if so - try to print its content.
Everything works fine, but when I try to read the file content, I always get EOF.
The source code of the program is attached, when I run it the partition table seems correct:
and it can mount the partition and find the file:
Thanks!