From a2c314fefda3dad408fda2fdcf06f81cba0df292 Mon Sep 17 00:00:00 2001 From: Raffael Rostagno Date: Thu, 29 May 2025 16:08:18 -0300 Subject: [PATCH 1/2] west.yml: hal_espressif: Fix ESP32-C6 sleep routine Update hal_espressif to fix ESP32-C6 sleep routine. Signed-off-by: Raffael Rostagno --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index e25b25630e30..1392fa1df00c 100644 --- a/west.yml +++ b/west.yml @@ -169,7 +169,7 @@ manifest: groups: - hal - name: hal_espressif - revision: e3532f053177077647104ae2ef215f0214dc5713 + revision: 1f1d6937f8bdd884f907ef455ea1508822a7d75e path: modules/hal/espressif west-commands: west/west-commands.yml groups: From dbd838dcc631e1c18f6eb33d3fdb528d8fd2daf3 Mon Sep 17 00:00:00 2001 From: Raffael Rostagno Date: Wed, 7 May 2025 15:39:03 -0300 Subject: [PATCH 2/2] 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 348ffed36283..7c639f98cca1 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.*)