skip app cpu when core dump stack in psram

This commit is contained in:
xutao 2020-03-13 12:43:12 +08:00 committed by maojianxin
parent de662d5e11
commit b48bdefe54

View File

@ -621,7 +621,11 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
disableAllWdts();
s_dumping_core = true;
#if CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH
if (xPortGetCoreID() == APP_CPU_NUM) {
panicPutStr("Current task in APP CPU, skip...\n");
} else {
esp_core_dump_to_flash(frame);
}
#endif
#if CONFIG_ESP32_ENABLE_COREDUMP_TO_UART && !CONFIG_ESP32_PANIC_SILENT_REBOOT
esp_core_dump_to_uart(frame);