I am struggling setting my custom partition scheme for an ESP32 board (16MB).
I have multiple ESP32’s (4MB and 16MB) and i also have 2 partition schemes. The last few months i was making my firmware on the 4MB board which worked great, but now i need a bigger partition because my firmware is getting bigger.
I switched back to my 16MB ESP32 but as soon as i use the old 16MB partition it keeps crashing
rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:12784
load:0x40080400,len:3032
entry 0x400805e4
The ESP reboots over and over again.
This is the partition scheme:
Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x780000,
app1, app, ota_1, 0x790000, 0x780000,
spiffs, data, spiffs, 0xf10000, 0xf0000,
I have tripple checked that this is a 16MB ESP but Arduino IDE shows the auto detected size is 16MB, and also EPS Tools shows it.
But apart from that, with the Arduino IDE i can use the same partition scheme, and it WORKS!
I have no clue what to do because it works in Arduino IDE but whatever i change, it doesn’t work on Platformio.
If i use the 4MB scheme on the 16MB esp32 via platformio, it does work so this is even more crazy in my opinion
Update, even adding this in my platformio.ini makes the esp crash
board_build.partitions = large_spiffs_16MB.csv
It seems that everything over 4MB makes the ESP crash, but 16 MB uploaded via Arduino IDE just works perfectly