mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
skip app cpu when core dump stack in psram
This commit is contained in:
@ -621,7 +621,11 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
|||||||
disableAllWdts();
|
disableAllWdts();
|
||||||
s_dumping_core = true;
|
s_dumping_core = true;
|
||||||
#if CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH
|
#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);
|
esp_core_dump_to_flash(frame);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_ESP32_ENABLE_COREDUMP_TO_UART && !CONFIG_ESP32_PANIC_SILENT_REBOOT
|
#if CONFIG_ESP32_ENABLE_COREDUMP_TO_UART && !CONFIG_ESP32_PANIC_SILENT_REBOOT
|
||||||
esp_core_dump_to_uart(frame);
|
esp_core_dump_to_uart(frame);
|
||||||
|
Reference in New Issue
Block a user