Merge branch 'bugfix/fix_fastmem_slowmem_lost_data_bug_v5.0' into 'release/v5.0'

[C3/S3]Fix sleep fast_mem & slow_mem may lost bug (v5.0)

See merge request espressif/esp-idf!29642
This commit is contained in:
Jiang Jiang Jian 2024-03-15 11:18:14 +08:00
commit 155eb11672
2 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,7 @@ void rtc_sleep_init(rtc_sleep_config_t cfg)
}
/* mem force pu */
SET_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_LSLP_MEM_FORCE_PU);
SET_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_FASTMEM_FORCE_LPU);
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_REGULATOR_FORCE_PU, cfg.rtc_regulator_fpu);
if (!cfg.int_8m_pd_en) {

View File

@ -232,6 +232,8 @@ void rtc_sleep_init(rtc_sleep_config_t cfg)
}
/* mem force pu */
SET_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_LSLP_MEM_FORCE_PU);
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_FASTMEM_FORCE_LPU);
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_SLOWMEM_FORCE_LPU);
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_REGULATOR_FORCE_PU, cfg.rtc_regulator_fpu);
if (!cfg.int_8m_pd_en) {