Hey everyone,
I’m stuck with a pretty annoying issue on PlatformIO while working with an ESP32 chip and ESP-IDF. No matter what I try, I can’t seem to change the partition scheme from the default 1MB setup. I’ve tried using both the built-in schemes and a custom one, but nothing seems to work. PlatformIO just keeps defaulting to the 1MB partition, which is way too small for what I need.
Has anyone else bumped into this? How do you get PlatformIO to actually use a different partition scheme for ESP32 on ESP-IDF? I’m probably missing something obvious, but I’m at a loss here.
platformio.ini
[env:lolin32]
platform = espressif32
board = lolin32
framework = espidf
upload_port = COM5
monitor_speed = 115200
upload_speed = 115200
[env:custom_table]
board_build.partitions = default.csv
skconfig
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="default.csv"
CONFIG_PARTITION_TABLE_FILENAME="default.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
default.csv
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x140000,
app1, app, ota_1, 0x150000,0x140000,
spiffs, data, spiffs, 0x290000,0x160000,
coredump, data, coredump,0x3F0000,0x10000,