mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
skip app cpu when core dump stack in psram
This commit is contained in:
parent
de662d5e11
commit
b48bdefe54
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user