wdt: Updates

This commit is contained in:
KonstantinKondrashov
2021-03-18 02:31:28 +08:00
parent 8c4d9fa66e
commit a90f29fced
3 changed files with 8 additions and 3 deletions

View File

@@ -233,8 +233,9 @@ static void wdt_reset_cpu0_info_enable(void)
static void wdt_reset_info_dump(int cpu) static void wdt_reset_info_dump(int cpu)
{ {
// TODO ESP32-C3 IDF-2118 (void) cpu;
ESP_LOGE(TAG, "WDT reset info dump is not supported yet"); // saved PC was already printed by the ROM bootloader.
// nothing to do here.
} }
static void bootloader_check_wdt_reset(void) static void bootloader_check_wdt_reset(void)

View File

@@ -58,6 +58,10 @@ static void IRAM_ATTR esp_crosscore_isr(void *arg)
* to allow DFS features without the extra latency of the ISR hook. * to allow DFS features without the extra latency of the ISR hook.
*/ */
} }
// TODO: ESP32-C3 IDF-2986
// if (my_reason_val & REASON_PRINT_BACKTRACE) {
// esp_backtrace_print(100);
// }
} }
// Initialize the crosscore interrupt on this core. // Initialize the crosscore interrupt on this core.

View File

@@ -184,7 +184,7 @@ static void task_wdt_isr(void *arg)
abort(); abort();
} else { } else {
#if !CONFIG_IDF_TARGET_ESP32C3 // TODO ESP32-C3 add backtrace printing support IDF-2285 #if !CONFIG_IDF_TARGET_ESP32C3 // TODO: ESP32-C3 IDF-2986
int current_core = xPortGetCoreID(); int current_core = xPortGetCoreID();
//Print backtrace of current core //Print backtrace of current core
ESP_EARLY_LOGE(TAG, "Print CPU %d (current core) backtrace", current_core); ESP_EARLY_LOGE(TAG, "Print CPU %d (current core) backtrace", current_core);