mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
wdt: Updates
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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.
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user