Page 1 of 1

Increasing Spiffs size in Partition

Posted: Fri May 27, 2022 8:40 am
by ClosedLoop
Hello, i am trying to increase the SPIFFs storage size, but i get the following error: Error: app partition is too small for binary project.bin size 0x191410:
- Part 'factory' 0/0 @ 0x10000 size 0x100000 (overflow 0x91410)

This is my partition:

Code: Select all

# Name,   Type, SubType, Offset,  Size, Flags
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
nvs,      data, nvs,     0x9000,  0x6000,
phy_init, data, phy,     0xF000,  0x1000,
factory,  app,  factory, 0x10000, 1M,
storage,  data, spiffs,  0x110000,0x200000, 
I don't think i should be changing the factory size or offset, is my partition table just wrong or should i just change the partition factory size and offset?

Re: Increasing Spiffs size in Partition

Posted: Wed Jun 01, 2022 9:23 am
by ESP_Minatel
Hi,

Assuming you have 4MB flash, you can try something like this:

Code: Select all

# Name,   Type, SubType, Offset,  Size, Flags
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
nvs,      data, nvs,     0x9000,  0x6000,
phy_init, data, phy,     0xF000,  0x1000,
factory,  app,  factory,       ,  1900K,
storage,  data, spiffs,        ,  2M,
For reference, you can see here link or here.

Re: Increasing Spiffs size in Partition

Posted: Tue Jan 03, 2023 8:27 pm
by gojimmypi
One possible solution for the "Error: app partition is too small for binary project.bin size" message is to use

Code: Select all

idf.py menuconfig
and select the "large app" option:

Code: Select all

Partition Table  --->  
  Partition Table (Single factory app, no OTA)  --->
    (X) Single factory app (large), no OTA