Skip to content

Commit 8f7386f

Browse files
author
Raffael Rostagno
committed
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 <[email protected]>
1 parent 51f3710 commit 8f7386f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soc/espressif/esp32c6/default.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ SECTIONS
405405
*libzephyr.a:esp_memory_utils.*(.literal .literal.* .text .text.*)
406406
*libzephyr.a:pmu_init.*(.literal .literal.* .text .text.*)
407407
*libzephyr.a:pmu_param.*(.literal .literal.* .text .text.*)
408+
*libzephyr.a:pmu_sleep.*(.literal .literal.* .text .text.*)
408409
*libzephyr.a:rtc_clk.*(.literal .literal.* .text .text.*)
409410
*libzephyr.a:rtc_clk_init.*(.literal .literal.* .text .text.*)
410411
*libzephyr.a:rtc_time.*(.literal .literal.* .text .text.*)

0 commit comments

Comments
 (0)