SPIFFS partition not flashed

apuder
Posts: 53
Joined: Mon Mar 26, 2018 7:27 pm

SPIFFS partition not flashed

Postby apuder » Sun Jun 02, 2024 6:42 pm

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

MicroController
Posts: 1725
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: SPIFFS partition not flashed

Postby MicroController » 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?

apuder
Posts: 53
Joined: Mon Mar 26, 2018 7:27 pm

Re: SPIFFS partition not flashed

Postby apuder » Tue Jun 04, 2024 5:20 pm

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

Who is online

Users browsing this forum: No registered users and 445 guests