Runtime reset when using esp_flash routines (ESP32-C5)
Posted: Tue Mar 10, 2026 11:12 am
Hello everyone,
i'm using ESP32-C5 devkitC-1 with vscode in windows , i'm building an espidf 5.5.2 application. When i call
or
at runtime i got a crash (this is a legacy project which worked on esp32 MCU) , reset cause is CPU_LOCKUP. I tried deinitiliazing the partition before calling the previous routines, disabling interrupts , putting in RAM the calling routine but nothing worked so far. What am i missing? The chip revision is ESP32-C5 (revision v1.0). Thanks to anyone who can give an hint.
i'm using ESP32-C5 devkitC-1 with vscode in windows , i'm building an espidf 5.5.2 application. When i call
Code: Select all
esp_flash_get_physical_size Code: Select all
nvs_flash_erase_partitionat runtime i got a crash (this is a legacy project which worked on esp32 MCU) , reset cause is CPU_LOCKUP. I tried deinitiliazing the partition before calling the previous routines, disabling interrupts , putting in RAM the calling routine but nothing worked so far. What am i missing? The chip revision is ESP32-C5 (revision v1.0). Thanks to anyone who can give an hint.