esp32: Fix wdt settings in esp_restart_noos

Fixed compatibility the new apps with the old bootloaders.

Closes: https://github.com/espressif/esp-idf/issues/2927
This commit is contained in:
Konstantin Kondrashov
2019-01-10 20:17:04 +08:00
parent 65d01336d3
commit 82c5e648ad
3 changed files with 15 additions and 2 deletions

View File

@@ -279,8 +279,7 @@ void IRAM_ATTR esp_restart_noos()
rtc_wdt_set_length_of_reset_signal(RTC_WDT_SYS_RESET_SIG, RTC_WDT_LENGTH_200ns);
rtc_wdt_set_length_of_reset_signal(RTC_WDT_CPU_RESET_SIG, RTC_WDT_LENGTH_200ns);
rtc_wdt_set_time(RTC_WDT_STAGE0, 1000);
rtc_wdt_enable();
rtc_wdt_protect_on();
rtc_wdt_flashboot_mode_enable();
// Reset and stall the other CPU.
// CPU must be reset before stalling, in case it was running a s32c1i