mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 06:04:19 +00:00
add debug code for wdt reset
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user