From 3e7ba2f38948e8576bf6cd422d38fb896c555427 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 30 Apr 2020 17:27:28 +1000 Subject: [PATCH] bootloader: Don't print an error message after WDT reset in unicore mode Caused some confusion here: https://github.com/espressif/esp-idf/issues/4388 --- components/bootloader_support/src/esp32/bootloader_esp32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/bootloader_support/src/esp32/bootloader_esp32.c b/components/bootloader_support/src/esp32/bootloader_esp32.c index b5d214976..c1e8a618e 100644 --- a/components/bootloader_support/src/esp32/bootloader_esp32.c +++ b/components/bootloader_support/src/esp32/bootloader_esp32.c @@ -364,9 +364,6 @@ static void wdt_reset_info_dump(int cpu) lsstat = DPORT_REG_READ(DPORT_APP_CPU_RECORD_PDEBUGLS0STAT_REG); lsaddr = DPORT_REG_READ(DPORT_APP_CPU_RECORD_PDEBUGLS0ADDR_REG); lsdata = DPORT_REG_READ(DPORT_APP_CPU_RECORD_PDEBUGLS0DATA_REG); -#else - ESP_LOGE(TAG, "WDT reset info: &s CPU not support!\n", cpu_name); - return; #endif } @@ -407,7 +404,9 @@ static void bootloader_check_wdt_reset(void) if (wdt_rst) { // if reset by WDT dump info from trace port wdt_reset_info_dump(0); +#if !CONFIG_FREERTOS_UNICORE wdt_reset_info_dump(1); +#endif } wdt_reset_cpu0_info_enable(); }