Expansion of NVS partition requires adapt default app partition address in esptool
If you want to increase the size of the NVS partition, the start address of the app partition changes as well. But Arduino IDE (using esptool to flash the ESP32) has the start address hard-coded. If, for example, you change your partition table into
1 2 3 4 5 6 7 |
Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x15000, otadata, data, ota, 0x1e000, 0x2000, app0, app, ota_0, 0x20000, 0x140000, app1, app, ota_1, 0x160000,0x140000, eeprom, data, 0x99, 0x2A0000,0x1000, spiffs, data, spiffs, 0x2A1000,0x15F000, |
The new start address for the application would be 0x20000 instead of 0x10000. Arduino IDE would flash the application, but to the wrong address. To flash the app to the correct address there are 2
Read more