Page 1 of 1

SPIFFS partition not flashed

Posted: Sun Jun 02, 2024 6:42 pm
by apuder
Hi,

I have a custom partition table that includes a few SPIFFS partitions. Everything worked well until I added another SPIFFS partition. idf.py won't package that SPIFFS partition and I don't know why. Here is my custom partition table:

Code: Select all

nvs,      data, nvs,     ,        0x6000,
phy_init, data, phy,     ,        0x1000,
factory,  app,  factory, ,        0x180000,
html,     data, spiffs,  ,        200K,
elFinder, data, spiffs,  ,        6M,
roms,     data, spiffs,  ,        1M,
fpga,     data, spiffs,  ,        6M,
The build directory contains html.bin, elFinder.bin, roms.bin, but no fpga.bin. The directory 'fpga' is there and is no different in terms of permissions. I am using ESP-IDF 4.4.7.

BTW: I set CONFIG_SPIFFS_MAX_PARTITIONS=4, but I'm not even getting there since idf.py won't create and flash the fpga partition.

Anyone have an idea?

AP

Re: SPIFFS partition not flashed

Posted: Mon Jun 03, 2024 8:45 pm
by MicroController
Did you add a call to spiffs_create_partition_image() to your CMakeLists.txt for the new partition?

Re: SPIFFS partition not flashed

Posted: Tue Jun 04, 2024 5:20 pm
by apuder
MicroController wrote:
Mon Jun 03, 2024 8:45 pm
Did you add a call to spiffs_create_partition_image() to your CMakeLists.txt for the new partition?
Thanks, @MicroController. That did the trick. I did the last SPIFFS partitions over a year ago and forgot that I also have to add this directive to CMakeLists.txt. I incorrectly assumed that mentioning the partition in the CSV file is sufficient.

AP