Partition Table Error In Spiffs File System

tahseenabbas52
Posts: 11
Joined: Thu Oct 24, 2024 6:24 am

Partition Table Error In Spiffs File System

Postby tahseenabbas52 » Tue Nov 05, 2024 1:56 pm

Hey,
I was testing spiffs example on ESP32, the original example app is working fine. No i want to deploy it along with another component is around 21MB in size, that component is working fine in another example other than spiffs. Now, when i add that module in spiffs example the error occurs that app partition is too small for binary. I changed the partition table but don't know what steps to take after that to fix the issue.

I have tried following things :
1. Tried to increase the Size in partition table like 25MB.
2. On build, logs suggested to modify serial flasher config, i changed flash size from 2M to 32MB.
3. Then i build and flashed the app on esp32 and got the following error:

Code: Select all

E (88) flash_parts: partition 2 invalid - offset 0x10000 size 0x200000 exceeds flash chip size 0x200000
Here is the partition table

Code: Select all

Espressif ESP32 Partition Table
Name       Type     SubType     Offset      Size     Flags
nvs          data     nvs         0x9000      0x6000
phy_init     data     phy         0xf000      0x1000
factory      app      factory     0x250000     2M
storage      data     spiffs                  1500k
Can any one provide step by step guide to solve this.

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

Re: Partition Table Error In Spiffs File System

Postby MicroController » Tue Nov 05, 2024 3:08 pm

tahseenabbas52 wrote:
Tue Nov 05, 2024 1:56 pm
1. Tried to increase the Size in partition table like 25MB.
...

Code: Select all

Espressif ESP32 Partition Table
Name       Type     SubType     Offset      Size     Flags
...
factory      app      factory     0x250000     2M
...
With this partition table, you set the start (Offset) of the factory partition to 25MB, but the size of that partition is still set to 2MB.

tahseenabbas52
Posts: 11
Joined: Thu Oct 24, 2024 6:24 am

Re: Partition Table Error In Spiffs File System

Postby tahseenabbas52 » Wed Nov 06, 2024 5:44 am

MicroController wrote:
Tue Nov 05, 2024 3:08 pm
tahseenabbas52 wrote:
Tue Nov 05, 2024 1:56 pm
1. Tried to increase the Size in partition table like 25MB.
...

Code: Select all

Espressif ESP32 Partition Table
Name       Type     SubType     Offset      Size     Flags
...
factory      app      factory     0x250000     2M
...
With this partition table, you set the start (Offset) of the factory partition to 25MB, but the size of that partition is still set to 2MB.
I have already tried on 25M and i was getting following error, seems like my ESP Chip doesn't have that much flash size, but i can't figure out than how that component is working in other apps that are without spiffs.

Code: Select all

A fatal error occurred: File storage.bin (length 1536000) at offset 28639232 will not fit in 4194304 bytes of flash. Change the --flash_size argument, or flashing address.

CMake Error at run_serial_tool.cmake:66 (message):

  C:/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe;;C:/Espressif/frameworks/esp-idf-v5.3.1/components/esptool_py/esptool/esptool.py;--chip;esp32
  failed. 
Also, i have seen some where in logs the Max Flash Size on ESP32 is 4MB, but i am totally confused then how that opencv component was working in other examples ?

Who is online

Users browsing this forum: No registered users and 230 guests