From 12db32642c9c0df238d786f9ab69f387d57d1722 Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Fri, 29 Oct 2021 21:24:09 +0800 Subject: [PATCH] substract rtc_iram_seg memory region size from ESP_BOOTLOADER_RESERVE_RTC --- components/esp_system/ld/esp32/memory.ld.in | 2 +- components/esp_system/ld/esp32s2/memory.ld.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_system/ld/esp32/memory.ld.in b/components/esp_system/ld/esp32/memory.ld.in index 34f0aa7b5c..04a8f4a868 100644 --- a/components/esp_system/ld/esp32/memory.ld.in +++ b/components/esp_system/ld/esp32/memory.ld.in @@ -91,7 +91,7 @@ MEMORY /* RTC fast memory (executable). Persists over deep sleep. */ - rtc_iram_seg(RWX) : org = 0x400C0000, len = 0x2000 + rtc_iram_seg(RWX) : org = 0x400C0000, len = 0x2000 - ESP_BOOTLOADER_RESERVE_RTC /* RTC fast memory (same block as above), viewed from data bus */ rtc_data_seg(RW) : org = 0x3ff80000, len = 0x2000 - ESP_BOOTLOADER_RESERVE_RTC diff --git a/components/esp_system/ld/esp32s2/memory.ld.in b/components/esp_system/ld/esp32s2/memory.ld.in index f40fca87a4..5bd6f46878 100644 --- a/components/esp_system/ld/esp32s2/memory.ld.in +++ b/components/esp_system/ld/esp32s2/memory.ld.in @@ -97,7 +97,7 @@ MEMORY /* RTC fast memory (executable). Persists over deep sleep. */ - rtc_iram_seg(RWX) : org = 0x40070000, len = 0x2000 + rtc_iram_seg(RWX) : org = 0x40070000, len = 0x2000 - ESP_BOOTLOADER_RESERVE_RTC /* RTC slow memory (data accessible). Persists over deep sleep.