From 16d849b95ea2cccbd78d0e0980696df164c9501c Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Fri, 14 Jul 2023 17:40:02 +0800 Subject: [PATCH] fix(esp_pm): fix flash access after light sleep wakeup --- components/esp_hw_support/linker.lf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/esp_hw_support/linker.lf b/components/esp_hw_support/linker.lf index dfc2509bf6..744de22edc 100644 --- a/components/esp_hw_support/linker.lf +++ b/components/esp_hw_support/linker.lf @@ -46,3 +46,9 @@ entries: sar_periph_ctrl (noflash) else: sar_periph_ctrl: sar_periph_ctrl_power_enable (noflash) + +[mapping:soc_pm] +archive: libsoc.a +entries: + if PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP && ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND: + gpio_periph: GPIO_HOLD_MASK (noflash)