Change partitions table for ESP-IDF platform

Hello,
I have a project in platform io (ESP-IDF framework) that needs a changed partition table. When i compile the project i get this error message

My partition table file looks like:

nvs,data,nvs,0x4000,
otadata,data,ota,0x2000,
phy_init,data,phy,0x1000,
ota_0,app,ota_0,1984K,
ota_1,app,ota_1,1984K,

The partition table file is located in the root of the project.

And my platformio.ini file looks like

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = espidf
board_build.partitions = partitions_two_ota.csv

board_build.embed_txtfiles =
src/webpage/app.css
src/webpage/app.js
src/webpage/favicon.ico
src/webpage/index.html
src/webpage/jquery-3.3.1.min.js

upload_port = COM3
monitor_port = COM3
monitor_speed = 115200

I am not familiar with partition tables and i don’ t understand the error message. Can someone tell me what is wrong here

thanks in advance
tonnie

Tonnie

You didn’t mention what size flash you have.
If your using 4MB, even though you specified 1984K, there is still a bit of overhead. make them smaller.
app0, app, ota_0, 0x10000, 1.5M,
app1, app, ota_1, , 1.5M,

Sorry for the late reply but changing the ota-0 and ota_1 size didn’t do the trick.

Platform io keeps complaining about the size. It says : The program size (1060221 bytes) is greater than the maximum allowed (1048576 bytes). But where those that numer come from ? It looks like platform io doesn’t use my partitions table at all and uses some other partitions table. I only have the setting done mentioned in the platformIO ini file. Is that enough ?