Fixed GLITCH_RTC_RST for esp32-c3 revision 3

* Issue: https://github.com/espressif/esp-idf/issues/7082

Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com>

Closes https://github.com/espressif/esp-idf/issues/7082
Closes https://github.com/espressif/esp-idf/pull/7441
pull/7536/head
Yuriy Shestakov 2021-08-18 23:12:01 +03:00 zatwierdzone przez Sachin Parekh
rodzic e215ea5bd2
commit 87b958c814
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -273,7 +273,8 @@ static inline void bootloader_glitch_reset_disable(void)
uint8_t chip_version = bootloader_common_get_chip_revision();
if (chip_version < 2) {
REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST);
} else if (chip_version == 2) {
} else {
// checked on ESP32-C3 revisions 2 and 3
REG_SET_FIELD(RTC_CNTL_FIB_SEL_REG, RTC_CNTL_FIB_SEL, RTC_CNTL_FIB_SUPER_WDT_RST | RTC_CNTL_FIB_BOR_RST);
}
}