From 8f581352e0314c7703181a791d0eeba774f108cd Mon Sep 17 00:00:00 2001 From: "chaijie@espressif.com" Date: Fri, 3 Nov 2023 14:33:20 +0800 Subject: [PATCH] fix(bbpll): fix bbpll calibration may stop early bug (S3) --- 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 d0eb58a7b3..a525c149a0 100644 --- a/components/esp_hw_support/port/esp32s3/rtc_clk.c +++ b/components/esp_hw_support/port/esp32s3/rtc_clk.c @@ -277,6 +277,7 @@ void rtc_clk_bbpll_configure(rtc_xtal_freq_t xtal_freq, int pll_freq) REGI2C_WRITE_MASK(I2C_BBPLL, I2C_BBPLL_OC_VCO_DBIAS, dbias); /* WAIT CALIBRATION DONE */ while (!GET_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_CAL_DONE)); + esp_rom_delay_us(10); /* BBPLL CALIBRATION STOP */ CLEAR_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_STOP_FORCE_LOW); SET_PERI_REG_MASK(I2C_MST_ANA_CONF0_REG, I2C_MST_BBPLL_STOP_FORCE_HIGH);