ESP32-C6: Arduino IDE; ZB_ESP_NVRAM: Failed to find zb_storage partition
Posted: Sun May 18, 2025 3:27 pm
WaveShare esp32-c6-dev-kit-n8
Arduino IDE: 2.3.6 2025-04-09
Library: https://raw.githubusercontent.com/espre ... index.json
Board: ESP32-C6 Dev Module
Other Tool settings:
- erase all flash
- JTag: (tried all of) Disabled; Integrated USB; FTDI; ESP-USB
- partition: default 4mb w/ spiffs
- zigbee mode: ZCZR
Examples->Zigbee-> Zigbee_On_Off_Switch.ino
(Created by Jan Procházka (https://github.com/P-R-O-C-H-Y/))
The code compiles without changes, uploads and starts but promptly aborts (I put a println at the top of setup() but it never displays in the serial monitor) as follows:
------------------------------
ELF file SHA256: a10ecd1d8
Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1260
load:0x4086c110,len:0xdc4
load:0x4086e610,len:0x3018
entry 0x4086c110
#[0;31mE (304) ZB_ESP_NVRAM: Failed to find zb_storage partition#[0m
Zigbee stack assertion failed /builds/thread_zigbee/esp-zboss/components/zboss_port/src/zb_esp_nvram.c:84
abort() was called at PC 0x42012803 on core 0
Core 0 register dump:
MEPC : 0x4080169a RA : 0x408075fe SP : 0x4081e900 GP : 0x4080e864
TP : 0x4081eb10 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x4081e92c S1 : 0x4081e92c A0 : 0x4081e938 A1 : 0x4081e91a
A2 : 0x00000000 A3 : 0x4081e965 A4 : 0x00000001 A5 : 0x40816000
A6 : 0x00000000 A7 : 0x76757473 S2 : 0x40810cd0 S3 : 0x42095000
S4 : 0x4080e07c S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000002 MTVAL : 0x00000000
MHARTID : 0x00000000
Stack memory:
4081e900: 0x00000000 0x00000000 0x4081e918 0x4080cf38 0x00000000 0x00000000 0x40800030 0x40810018
4081e920: 0x4081e92c 0x40810034 0x4081e918 0x31303234 0x33303832 0x00000000 0x726f6261 0x20292874
…
------------------------------
All of the discussion I can find touching on keywords from my topic title refers to other development environments such as ESP-IDF and the discussions include (library?) code functions not exposed in the example code I have and/or discussions of correct partition formatting. In Arduino IDE with this example code there are no references to partitioning at all other than the specification to set it correctly under Tools.
What am I doing wrong?
Is it possible to run these esp32 zigbee examples under Arduio IDE or do I need to switch to ESP-IDF?
TIA
Arduino IDE: 2.3.6 2025-04-09
Library: https://raw.githubusercontent.com/espre ... index.json
Board: ESP32-C6 Dev Module
Other Tool settings:
- erase all flash
- JTag: (tried all of) Disabled; Integrated USB; FTDI; ESP-USB
- partition: default 4mb w/ spiffs
- zigbee mode: ZCZR
Examples->Zigbee-> Zigbee_On_Off_Switch.ino
(Created by Jan Procházka (https://github.com/P-R-O-C-H-Y/))
The code compiles without changes, uploads and starts but promptly aborts (I put a println at the top of setup() but it never displays in the serial monitor) as follows:
------------------------------
ELF file SHA256: a10ecd1d8
Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1260
load:0x4086c110,len:0xdc4
load:0x4086e610,len:0x3018
entry 0x4086c110
#[0;31mE (304) ZB_ESP_NVRAM: Failed to find zb_storage partition#[0m
Zigbee stack assertion failed /builds/thread_zigbee/esp-zboss/components/zboss_port/src/zb_esp_nvram.c:84
abort() was called at PC 0x42012803 on core 0
Core 0 register dump:
MEPC : 0x4080169a RA : 0x408075fe SP : 0x4081e900 GP : 0x4080e864
TP : 0x4081eb10 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x4081e92c S1 : 0x4081e92c A0 : 0x4081e938 A1 : 0x4081e91a
A2 : 0x00000000 A3 : 0x4081e965 A4 : 0x00000001 A5 : 0x40816000
A6 : 0x00000000 A7 : 0x76757473 S2 : 0x40810cd0 S3 : 0x42095000
S4 : 0x4080e07c S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000002 MTVAL : 0x00000000
MHARTID : 0x00000000
Stack memory:
4081e900: 0x00000000 0x00000000 0x4081e918 0x4080cf38 0x00000000 0x00000000 0x40800030 0x40810018
4081e920: 0x4081e92c 0x40810034 0x4081e918 0x31303234 0x33303832 0x00000000 0x726f6261 0x20292874
…
------------------------------
All of the discussion I can find touching on keywords from my topic title refers to other development environments such as ESP-IDF and the discussions include (library?) code functions not exposed in the example code I have and/or discussions of correct partition formatting. In Arduino IDE with this example code there are no references to partitioning at all other than the specification to set it correctly under Tools.
What am I doing wrong?
Is it possible to run these esp32 zigbee examples under Arduio IDE or do I need to switch to ESP-IDF?
TIA