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.