add soft solution for esp32 eco3 live lock issue

This commit is contained in:
Li Shuai
2020-06-17 14:50:24 +08:00
committed by bot
parent bd72a9ab2b
commit b89a2bb266
6 changed files with 333 additions and 5 deletions

View File

@@ -247,9 +247,9 @@ void panicHandler(XtExcFrame *frame)
while (1);
}
//The core which triggers the interrupt watchdog will delay 1 us, so the other core can save its frame.
//The core which triggers the interrupt watchdog will delay 500 us, so the other core can save its frame.
if (frame->exccause == PANIC_RSN_INTWDT_CPU0 || frame->exccause == PANIC_RSN_INTWDT_CPU1) {
ets_delay_us(1);
ets_delay_us(500);
}
if (frame->exccause == PANIC_RSN_CACHEERR && esp_cache_err_get_cpuid() != core_id) {