Skip to content

Commit 3a64c44

Browse files
chaijie@espressif.comespressif-bot
authored andcommitted
fix(esp32): Fixed qa program may fail issue when cpu 240m
1 parent 79ee092 commit 3a64c44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/esp_hw_support/port/esp32/include/soc/rtc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ extern "C" {
7171
*/
7272
#define RTC_CNTL_DBIAS_HP_VOLT (RTC_CNTL_DBIAS_1V25 - efuse_ll_get_vol_level_hp_inv())
7373
#ifdef CONFIG_ESPTOOLPY_FLASHFREQ_80M
74-
#define DIG_DBIAS_80M_160M RTC_CNTL_DBIAS_HP_VOLT
74+
#define DIG_DBIAS_80M_160M RTC_CNTL_DBIAS_1V25
7575
#else
7676
#define DIG_DBIAS_80M_160M RTC_CNTL_DBIAS_1V10
7777
#endif
78-
#define DIG_DBIAS_240M RTC_CNTL_DBIAS_HP_VOLT
78+
#define DIG_DBIAS_240M RTC_CNTL_DBIAS_1V25
7979
#define DIG_DBIAS_XTAL RTC_CNTL_DBIAS_1V10
8080
#define DIG_DBIAS_2M RTC_CNTL_DBIAS_1V00
8181

components/esp_hw_support/port/esp32/rtc_clk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz)
404404
rtc_clk_apb_freq_update(80 * MHZ);
405405
esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz);
406406
rtc_clk_wait_for_slow_cycle();
407+
esp_rom_delay_us(30);
407408
}
408409

409410
void rtc_clk_cpu_freq_set_xtal(void)

0 commit comments

Comments
 (0)