Unable to enlarge nvs partition
Posted: Mon May 17, 2021 11:31 am
For my project with ESP32 WROOM32-E 4MB (Chip is ESP32-D0WD-V3) I need a larger non volatile storage.
Currently I'm using this partioning which is working OK, all offsets are automatically calculated by the partitioning tool:
But as soon as I exceed the 0x5000 for the nvs partion, which in turn will offset the app0 ota_0 partition to 0x20000 (in stead of 0x10000) the ESP32 will get into a reboot loop.
So for example this table:
will lead to a reboot loop like this:
etc.....
So how can I enlarge my nvs?
Help would be greatly appreciated.
Kind regards, Ronald Wijnsema
BTW I'm using PlatformIO for development:
Checking platformio/contrib-pysite 2.37.191020 @ ~2.37.0 [Incompatible 2.39.201019]
Checking platformio/tool-unity 1.20500.200612 @ ~1.20500.0 [Up-to-date]
Checking platformio/tool-scons 4.40100.2 @ ~4.40100.2 [Up-to-date]
Platform Manager
================
Platform espressif32
--------
Checking platformio/espressif32 2.1.0 [Outdated 3.2.0]
Checking platformio/toolchain-xtensa32 2.50200.80 @ ~2.50200.0 [Outdated 2.50200.97]
Checking platformio/toolchain-esp32ulp 1.22851.191205 @ ~1.22851.0 [Up-to-date]
Checking platformio/tool-esptoolpy 1.30000.201119 @ ~1.30000.0 [Up-to-date]
Checking platformio/tool-mkspiffs 2.230.0 @ ~2.230.0 [Up-to-date]
Checking platformio/tool-cmake 3.16.4 @ ~3.16.0 [Up-to-date]
Checking platformio/tool-ninja 1.9.0 @ ^1.7.0 [Up-to-date]
Checking platformio/tool-mconf 1.4060000.20190628 @ ~1.4060000.0 [Up-to-date]
Checking platformio/tool-idf 1.0.1 @ ~1.0.1 [Up-to-date]
Platform espressif32
--------
Checking git+https://github.com/platformio/platform-espressif32.git 2.1.0+sha.a58a358 [Outdated 2.1.0+sha.56f9c60]
Checking platformio/toolchain-xtensa32 2.50200.80 @ ~2.50200.0 [Outdated 2.50200.97]
Checking platformio/toolchain-esp32ulp 1.22851.191205 @ ~1.22851.0 [Up-to-date]
Checking platformio/tool-esptoolpy 1.30000.201119 @ ~1.30000.0 [Up-to-date]
Checking platformio/tool-mkspiffs 2.230.0 @ ~2.230.0 [Up-to-date]
Checking platformio/tool-cmake 3.16.4 @ ~3.16.0 [Up-to-date]
Checking platformio/tool-ninja 1.9.0 @ ^1.7.0 [Up-to-date]
Checking platformio/tool-mconf 1.4060000.20190628 @ ~1.4060000.0 [Up-to-date]
Checking platformio/tool-idf 1.0.1 @ ~1.0.1 [Up-to-date]
Currently I'm using this partioning which is working OK, all offsets are automatically calculated by the partitioning tool:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, , 0x2000,
app0, app, ota_0, , 0x160000,
app1, app, ota_1, , 0x160000,
phy_init, data, phy, , 0x1000
So for example this table:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0xa000,
otadata, data, ota, , 0x2000,
app0, app, ota_0, , 0x160000,
app1, app, ota_1, , 0x160000,
phy_init, data, phy, , 0x1000
Code: Select all
rst:0x3 (SW_RESET),boot:0x17 (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:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10100
ho 0 tail 12 room 4
load:0x40080400,len:5828
entry 0x400806a8
ets Jul 29 2019 12:21:46
rst:0x3 (SW_RESET),boot:0x17 (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:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10100
ho 0 tail 12 room 4
load:0x40080400,len:5828
entry 0x400806a8
ets Jul 29 2019 12:21:46
So how can I enlarge my nvs?
Help would be greatly appreciated.
Kind regards, Ronald Wijnsema
BTW I'm using PlatformIO for development:
Checking platformio/contrib-pysite 2.37.191020 @ ~2.37.0 [Incompatible 2.39.201019]
Checking platformio/tool-unity 1.20500.200612 @ ~1.20500.0 [Up-to-date]
Checking platformio/tool-scons 4.40100.2 @ ~4.40100.2 [Up-to-date]
Platform Manager
================
Platform espressif32
--------
Checking platformio/espressif32 2.1.0 [Outdated 3.2.0]
Checking platformio/toolchain-xtensa32 2.50200.80 @ ~2.50200.0 [Outdated 2.50200.97]
Checking platformio/toolchain-esp32ulp 1.22851.191205 @ ~1.22851.0 [Up-to-date]
Checking platformio/tool-esptoolpy 1.30000.201119 @ ~1.30000.0 [Up-to-date]
Checking platformio/tool-mkspiffs 2.230.0 @ ~2.230.0 [Up-to-date]
Checking platformio/tool-cmake 3.16.4 @ ~3.16.0 [Up-to-date]
Checking platformio/tool-ninja 1.9.0 @ ^1.7.0 [Up-to-date]
Checking platformio/tool-mconf 1.4060000.20190628 @ ~1.4060000.0 [Up-to-date]
Checking platformio/tool-idf 1.0.1 @ ~1.0.1 [Up-to-date]
Platform espressif32
--------
Checking git+https://github.com/platformio/platform-espressif32.git 2.1.0+sha.a58a358 [Outdated 2.1.0+sha.56f9c60]
Checking platformio/toolchain-xtensa32 2.50200.80 @ ~2.50200.0 [Outdated 2.50200.97]
Checking platformio/toolchain-esp32ulp 1.22851.191205 @ ~1.22851.0 [Up-to-date]
Checking platformio/tool-esptoolpy 1.30000.201119 @ ~1.30000.0 [Up-to-date]
Checking platformio/tool-mkspiffs 2.230.0 @ ~2.230.0 [Up-to-date]
Checking platformio/tool-cmake 3.16.4 @ ~3.16.0 [Up-to-date]
Checking platformio/tool-ninja 1.9.0 @ ^1.7.0 [Up-to-date]
Checking platformio/tool-mconf 1.4060000.20190628 @ ~1.4060000.0 [Up-to-date]
Checking platformio/tool-idf 1.0.1 @ ~1.0.1 [Up-to-date]