mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(esp_hw_support): fix esp32p4 HP_SYS_HP_WDT_RESET issue caused by cache invalid all
This commit is contained in:
@@ -1211,13 +1211,10 @@ static esp_err_t SLEEP_FN_ATTR esp_sleep_start(uint32_t sleep_flags, uint32_t cl
|
|||||||
|
|
||||||
if (!deep_sleep) {
|
if (!deep_sleep) {
|
||||||
if (result == ESP_OK) {
|
if (result == ESP_OK) {
|
||||||
#if !CONFIG_PM_SLP_IRAM_OPT && !CONFIG_IDF_TARGET_ESP32
|
#if !CONFIG_PM_SLP_IRAM_OPT && !(CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32P4)
|
||||||
#if CONFIG_SPIRAM
|
#if CONFIG_SPIRAM
|
||||||
# if CONFIG_IDF_TARGET_ESP32P4
|
// TODO: PM-651
|
||||||
cache_ll_writeback_all(CACHE_LL_LEVEL_ALL, CACHE_TYPE_DATA, CACHE_LL_ID_ALL);
|
|
||||||
# else
|
|
||||||
Cache_WriteBack_All();
|
Cache_WriteBack_All();
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
/* When the IRAM optimization for the sleep flow is disabled, all
|
/* When the IRAM optimization for the sleep flow is disabled, all
|
||||||
* cache contents are forcibly invalidated before exiting the sleep
|
* cache contents are forcibly invalidated before exiting the sleep
|
||||||
|
|||||||
Reference in New Issue
Block a user