Is there any limit to how big you can make the SPIFFS partition?
I upgraded my project to the new ESP32-WROOM32-D with 128Mbit (16 megabyte) flash chip due to wanting both more program space, and wanting a larger amount of SPIFFS storage.
Im setting it up with 3MB app partitions (OTA), and the remaining as SPIFFS...so that should work out to about 10MB of SPIFFS.
Im using the arduino IDE add-on to compile/upload the SPIFFS image of whatever I put in the sketch "data" folder.
However when I go to compile/upload the image to SPIFFS, when my "data" folder exceeds roughly 7 megabytes (me checking the folder size in windows properties) of files, Arduino gives an error saying "file system is full".
I checked the partition size with parttool.py, and it looks correct (both app partitions show as 0x30000 in size, and the SPIFFS partition shows as 0x9F0000 in size)
Any ideas?
I formatted the partitions as follows:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x300000,
app1, app, ota_1, 0x310000,0x300000,
spiffs, data, spiffs, 0x610000,0x9F0000,
SPIFFS partition size limit??
Re: SPIFFS partition size limit??
dmaxben wrote: ↑Sun Dec 29, 2019 3:32 pmIs there any limit to how big you can make the SPIFFS partition?
I upgraded my project to the new ESP32-WROOM32-D with 128Mbit (16 megabyte) flash chip due to wanting both more program space, and wanting a larger amount of SPIFFS storage.
Im setting it up with 3MB app partitions (OTA), and the remaining as SPIFFS...so that should work out to about 10MB of SPIFFS.
Im using the arduino IDE add-on to compile/upload the SPIFFS image of whatever I put in the sketch "data" folder.
However when I go to compile/upload the image to SPIFFS, when my "data" folder exceeds roughly 7 megabytes (me checking the folder size in windows properties) of files, Arduino gives an error saying "file system is full".
I checked the partition size with parttool.py, and it looks correct (both app partitions show as 0x30000 in size, and the SPIFFS partition shows as 0x9F0000 in size)
Any ideas?
I formatted the partitions as follows:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x300000,
app1, app, ota_1, 0x310000,0x300000,
spiffs, data, spiffs, 0x610000,0x9F0000,
hi
your ESP32-WROOM32-D with 128Mbit (16 megabyte) is in the board.txt ?
example:
..
ESP32WROOM32D.build.flash_size=16MB
..
ESP32WROOM32D.menu.PartitionScheme.default=Default
check the PartionsScheme examples..
can you test this (example windows, COM33, and SPIFFS size 0x9F0000, Offset 0x610000, data in folder "data" ) :
generate your spiffs.bin from your data folder in a terminal, you must be in the project folder and data is a subfolder,
or add paths to the folder name "data" where it is.. and where spiffs.bin must be saved:
python %IDF_PATH%/components/spiffs/spiffsgen.py 0x9F0000 data spiffs.bin
flash your spiffs.bin in a terminal
add paths to the spiffs.bin where it is ..
python %IDF_PATH%/components/esptool_py/esptool/esptool.py --chip esp32 --port COM33 --baud 115200 write_flash -z 0x610000 spiffs.bin
hope this helps for fast self testings -
best wishes
rudi
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: SPIFFS partition size limit??
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Who is online
Users browsing this forum: AndrewLevel100, Baidu [Spider], Google [Bot] and 90 guests