ESP32 partitionsize config at framework arduino and espidf

hello,

my project is big (1.4MB compiled). When I only use the arduino framework, I used the min_spiffs.cvs partition configuration in plattformio.ini:

board_build.partitions = min_spiffs.csv

Now, I compiled the project with arduino and espidf framework at the them time.
The board_build.partitions = min_spiffs.csv does not working anymore.

But I use the idf menuconfig to configure the project, so that in the sdkconfig.esp32dev following is written:

CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="min_spiffs.csv"
CONFIG_PARTITION_TABLE_FILENAME="min_spiffs.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x10000
CONFIG_PARTITION_TABLE_MD5=y

The min_spiffs.csv is in the main project folder \PlatformIO\Projects\MyProject (example).

But the build process seems not to use my configuration, so that it failed because it does not fit in the app-partition (1.8MB).

Linking .pio\build\esp32dev\firmware.elf
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Error: The program size (1410641 bytes) is greater than maximum allowed (1048576 bytes)
RAM:   [==        ]  19.1% (used 62664 bytes from 327680 bytes)
*** [checkprogsize] Explicit exit, status 1
Flash: [==========]  134.5% (used 1410641 bytes from 1048576 bytes)

What have to do that it works?
The intention of all is to use the encryption of the firmware with my own key.

With ESP-IDF based projects, indeed both the platformio.ini and menuconfig must be informed about the partition table. You seem to correctly do both, but it still won’t work. Per min_spiffs.csv you should be getting 0x1E0000 = 1.875 MByte of App0 spaces.

Does this also occur in the latest pltform version? Set platform = espressif32@5.2.0 in the platformio.ini to test. If yes, you might have found a bug. Please report it to Issues · platformio/platform-espressif32 · GitHub.

Yes, the new version of platform = espressif32@5.2.0 is installed.

okay… There is no bug.

I got it.

First clean the project.
In plattformio.ini the board_build.partitions = C:\Users\user1\Documents\PlatformIO\Projects\myproject\min_spiffs.csv

In sdkconfig.esp32dev

CONFIG_PARTITION_TABLE_CUSTOM_FILENAME=“C:\\Users\user1\\Documents\\PlatformIO\\Projects\\myproject\\min_spiffs.csv”
CONFIG_PARTITION_TABLE_FILENAME=“C:\\Users\user1\\Documents\\PlatformIO\\Projects\\myproject\\min_spiffs.csv”
CONFIG_PARTITION_TABLE_OFFSET=0x8000`

Importend the CONFIG_PARTITION_TABLE_OFFSET=0x10000 in previous configuration was wrong.