Increasing Spiffs size in Partition

ClosedLoop
Posts: 14
Joined: Mon May 16, 2022 8:13 am
Location: Portugal

Increasing Spiffs size in Partition

Postby ClosedLoop » Fri May 27, 2022 8:40 am

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?

ESP_Minatel
Posts: 361
Joined: Mon Jan 04, 2021 2:06 pm

Re: Increasing Spiffs size in Partition

Postby ESP_Minatel » Wed Jun 01, 2022 9:23 am

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.

gojimmypi
Posts: 4
Joined: Mon Apr 18, 2022 3:58 pm

Re: Increasing Spiffs size in Partition

Postby gojimmypi » Tue Jan 03, 2023 8:27 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 125 guests