add debug code for wdt reset

This commit is contained in:
Li Shuai
2020-04-07 17:02:56 +08:00
committed by maojianxin
parent 19fd28aad8
commit 76717f72d6
2 changed files with 23 additions and 0 deletions

View File

@@ -253,6 +253,11 @@ void IRAM_ATTR call_start_cpu0()
fail initializing it properly. */
heap_caps_init();
for (int i = 0; i < 64; i++) {
ets_printf(((i+1)%8) ? DRAM_STR("%08x ") : DRAM_STR("%08x\n"), *(((volatile uint32_t *)SOC_RTC_DATA_LOW) + i));
*(((volatile uint32_t *)SOC_RTC_DATA_LOW) + i) = 0;
}
ESP_EARLY_LOGI(TAG, "Pro cpu start user code");
start_cpu0();
}