From 588c2e66e91258354426648534c34f8be738ae10 Mon Sep 17 00:00:00 2001 From: Raffael Rostagno Date: Wed, 7 May 2025 15:39:03 -0300 Subject: [PATCH] soc: esp32c6: Fix sleep routine PMU related functions need to be located in IRAM when sleep process is triggered, as cache is disabled past a certain point in the execution of the sleep process. Signed-off-by: Raffael Rostagno --- soc/espressif/esp32c6/default.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/soc/espressif/esp32c6/default.ld b/soc/espressif/esp32c6/default.ld index 348ffed3628..7c639f98cca 100644 --- a/soc/espressif/esp32c6/default.ld +++ b/soc/espressif/esp32c6/default.ld @@ -405,6 +405,7 @@ SECTIONS *libzephyr.a:esp_memory_utils.*(.literal .literal.* .text .text.*) *libzephyr.a:pmu_init.*(.literal .literal.* .text .text.*) *libzephyr.a:pmu_param.*(.literal .literal.* .text .text.*) + *libzephyr.a:pmu_sleep.*(.literal .literal.* .text .text.*) *libzephyr.a:rtc_clk.*(.literal .literal.* .text .text.*) *libzephyr.a:rtc_clk_init.*(.literal .literal.* .text .text.*) *libzephyr.a:rtc_time.*(.literal .literal.* .text .text.*)