|
|
@@ -629,7 +629,7 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
|
|
rtc_wdt_disable();
|
|
|
#if CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT
|
|
|
panicPutStr("Rebooting...\r\n");
|
|
|
- if (frame->exccause != PANIC_RSN_CACHEERR) {
|
|
|
+ if (esp_cache_err_get_cpuid() == -1) {
|
|
|
esp_restart_noos();
|
|
|
} else {
|
|
|
// The only way to clear invalid cache access interrupt is to reset the digital part
|