fix(esp_hw_support): fix sar disable access flash in IRAM_OPT sleep

This commit is contained in:
wuzhenghui
2024-11-12 12:01:35 +08:00
parent 3f46b378bb
commit 2899c1e39f
2 changed files with 2 additions and 5 deletions

View File

@@ -687,12 +687,10 @@ FORCE_INLINE_ATTR void misc_modules_sleep_prepare(uint32_t pd_flags, bool deep_s
#endif #endif
} }
#if !CONFIG_IDF_TARGET_ESP32P4
// TODO: IDF-7370
if (!(deep_sleep && (s_sleep_sub_mode_ref_cnt[ESP_SLEEP_USE_ADC_TSEN_MONITOR_MODE] != 0))){ if (!(deep_sleep && (s_sleep_sub_mode_ref_cnt[ESP_SLEEP_USE_ADC_TSEN_MONITOR_MODE] != 0))){
// TODO: IDF-7370
sar_periph_ctrl_power_disable(); sar_periph_ctrl_power_disable();
} }
#endif
} }
/** /**

View File

@@ -38,8 +38,7 @@ entries:
sleep_mmu:mmu_domain_pd_allowed (noflash) sleep_mmu:mmu_domain_pd_allowed (noflash)
sleep_modem:modem_domain_pd_allowed (noflash) sleep_modem:modem_domain_pd_allowed (noflash)
sleep_modem:periph_inform_out_light_sleep_overhead (noflash) sleep_modem:periph_inform_out_light_sleep_overhead (noflash)
if IDF_TARGET_ESP32P4 = n && IDF_TARGET_ESP32C61 = n : # TODO: IDF-6496, IDF-9304 sar_periph_ctrl:sar_periph_ctrl_power_disable (noflash)
sar_periph_ctrl:sar_periph_ctrl_power_disable (noflash)
[mapping:esp_system_pm] [mapping:esp_system_pm]
archive: libesp_system.a archive: libesp_system.a