esp32: Added dumping info from traceport upon reset by any WDT

- Last PC info and waiti mode indication are printed for both CPUs
 - Raw traceport regs values are printed only for log levels higher than DEBUG
This commit is contained in:
Alexey Gerenkov
2017-04-11 22:55:31 +03:00
parent 404e89da4d
commit 77a92e6dcc
3 changed files with 325 additions and 2 deletions

View File

@@ -109,6 +109,7 @@ void IRAM_ATTR call_start_cpu0()
::"r"(&_init_start));
rst_reas[0] = rtc_get_reset_reason(0);
#if !CONFIG_FREERTOS_UNICORE
rst_reas[1] = rtc_get_reset_reason(1);
#endif
@@ -118,8 +119,7 @@ void IRAM_ATTR call_start_cpu0()
#if !CONFIG_FREERTOS_UNICORE
|| rst_reas[1] == RTCWDT_SYS_RESET || rst_reas[1] == TG0WDT_SYS_RESET
#endif
) {
// stop wdt in case of any
) {
esp_panic_wdt_stop();
}