From 252a4eceb46a414e98db2577d31153193503477f Mon Sep 17 00:00:00 2001 From: jingli Date: Thu, 21 Apr 2022 23:38:16 +0800 Subject: [PATCH] fix rtc mem load err(since the voltage of rtc regulator is too low) --- components/esp_hw_support/port/esp32s3/rtc_clk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_hw_support/port/esp32s3/rtc_clk.c b/components/esp_hw_support/port/esp32s3/rtc_clk.c index 9d8358123c..f85af1317a 100644 --- a/components/esp_hw_support/port/esp32s3/rtc_clk.c +++ b/components/esp_hw_support/port/esp32s3/rtc_clk.c @@ -309,6 +309,7 @@ static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) ESP_HW_LOGE(TAG, "invalid frequency"); } REGI2C_WRITE_MASK(I2C_DIG_REG, I2C_DIG_REG_EXT_DIG_DREG, dbias); + REGI2C_WRITE_MASK(I2C_DIG_REG, I2C_DIG_REG_EXT_RTC_DREG, dbias); wait_dig_dbias_valid(2); REG_SET_FIELD(SYSTEM_CPU_PER_CONF_REG, SYSTEM_CPUPERIOD_SEL, per_conf); REG_SET_FIELD(SYSTEM_SYSCLK_CONF_REG, SYSTEM_PRE_DIV_CNT, 0);