mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-04 11:00:58 +02:00
coredump: Fixes ESP-specific panic reasons handling
This commit is contained in:
committed by
Roland Dobai
parent
943d4e4f72
commit
719974ac88
@@ -302,6 +302,13 @@ static inline void printCacheError(void)
|
||||
panicPutStr("\r\n");
|
||||
}
|
||||
|
||||
// panicHandler() gets called for when the double exception vector,
|
||||
// kernel exception vector gets used; as well as handling interrupt-based
|
||||
// faults cache error, wdt expiry. EXCAUSE register gets written with
|
||||
// one of PANIC_RSN_* values.
|
||||
// This flag indicate condition described above. Used by coredump to handle pseuso excauses properly.
|
||||
bool g_panic_pseudo_excause;
|
||||
|
||||
void panicHandler(XtExcFrame *frame)
|
||||
{
|
||||
int core_id = xPortGetCoreID();
|
||||
@@ -321,6 +328,7 @@ void panicHandler(XtExcFrame *frame)
|
||||
if (frame->exccause <= PANIC_RSN_MAX) {
|
||||
reason = reasons[frame->exccause];
|
||||
}
|
||||
g_panic_pseudo_excause = true;
|
||||
|
||||
if (frame->exccause == PANIC_RSN_INTWDT_CPU0) {
|
||||
esp_reset_reason_set_hint(ESP_RST_INT_WDT);
|
||||
|
Reference in New Issue
Block a user