me-no-dev / arduino-esp32fs-plugin

Arduino plugin for uploading files to ESP32 file system
GNU General Public License v2.0
544 stars 144 forks source link

Wrong "SPIFFS_write error(-10001): File system is full." ? #12

Open Menion2k opened 5 years ago

Menion2k commented 5 years ago

Hello I am using the ver 1.0 of the tool in Arudino 1.8.7 with ESP32 core 1.0.1 I have a filesystem, flat, no directory, of size of 1249718 bytes (1306624 occupied on NTFS file system), composed by 27 files. When trying to pack and flash it I get this error:

SPIFFS_write error(-10001): File system is full.

error adding file!

SPIFFS Create Failed!

I am using the ESP32 DEV target, 4Mb of Flash with Default partition scheme. According to the core cvs:

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x140000,
app1,     app,  ota_1,   0x150000,0x140000,
eeprom,   data, 0x99,    0x290000,0x1000,
spiffs,   data, spiffs,  0x291000,0x16F000,

The SPIFFS size should be 0x16F000 = 1503232 bytes, so there is approximately 250KB of margin, so I do not understand why the tool says the filesystem is full I need to go below 1090KB to make it working

Compressed 1503232 bytes to 407675...

Writing at 0x00291000... (4 %)
Writing at 0x00295000... (8 %)
Writing at 0x00299000... (12 %)
................................................................
Writing at 0x002ed000... (96 %)
Writing at 0x002f1000... (100 %)
Wrote 1503232 bytes (407675 compressed) at 0x00291000 in 10.4 seconds (effective 1156.2 kbit/s)...

You see that the 1090KB are compressed down to 407675 bytes, so the tool in my opinion should check the compressed size in the end, but still it seems it miscalculate the size of the files

minhhieuec commented 2 years ago

I am also facing this issue. Did you solve it?