From 61f7bc6e2a57a1cd159554aa6f33489abba67f18 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Mon, 14 Jun 2021 10:17:42 +0100 Subject: [PATCH] boards/risc-v/esp32c3-devkit/scripts: Drop the "iram" in the name of the RTC section. The RTC region is accessed by both I and D buses. The old name of `rtc_iram_seg` is a bit confusing. Signed-off-by: Abdelatif Guettouche --- boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld | 6 +++--- .../esp32c3/esp32c3-devkit/scripts/esp32c3.template.ld | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld index fa3b073743..4640d22515 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld +++ b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.ld @@ -223,7 +223,7 @@ SECTIONS { . = ALIGN(4); *(.rtc.literal .rtc.text) - } >rtc_iram_seg + } >rtc_seg /* This section is required to skip rtc.text area because the text and * data segments reflect the same address space on different buses. @@ -232,7 +232,7 @@ SECTIONS .rtc.dummy : { . = SIZEOF(.rtc.text); - } >rtc_iram_seg + } >rtc_seg /* RTC data section holds RTC wake stub data/rodata. */ @@ -240,6 +240,6 @@ SECTIONS { *(.rtc.data) *(.rtc.rodata) - } >rtc_iram_seg + } >rtc_seg } diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.template.ld b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.template.ld index 4b8a5c3c87..9b346798ca 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.template.ld +++ b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3.template.ld @@ -76,10 +76,9 @@ MEMORY drom0_0_seg (R) : org = 0x3c000020, len = 0x8000000 - 0x20 - /* RTC fast memory (executable). Persists over deep sleep. */ - - rtc_iram_seg(RWX) : org = 0x50000000, len = 0x2000 + /* RTC fast memory. Persists over deep sleep. */ + rtc_seg(RWX) : org = 0x50000000, len = 0x2000 } #if CONFIG_ESP32C3_DEVKIT_RUN_IRAM