Selaa lähdekoodia

esp_system (C6 & H2): Enables BOOTLOADER_RESERVE_RTC_MEM feature for bootloader

This option reserves an area in RTC FAST memory for the following features:
- "Skip image validation when exiting deep sleep"
- "Reserve RTC FAST memory for custom purposes"
- "GPIO triggers factory reset"
KonstantinKondrashov 2 vuotta sitten
vanhempi
sitoutus
a622ac43eb

+ 2 - 2
components/esp_system/ld/esp32c6/memory.ld.in

@@ -91,9 +91,9 @@ MEMORY
    */
 #if CONFIG_ULP_COPROC_ENABLED
   lp_ram_seg(RW)  :                 org = 0x50000000 + CONFIG_ULP_COPROC_RESERVE_MEM,
-                                    len = 0x4000 - CONFIG_ULP_COPROC_RESERVE_MEM
+                                    len = 0x4000 - CONFIG_ULP_COPROC_RESERVE_MEM - ESP_BOOTLOADER_RESERVE_RTC
 #else
-  lp_ram_seg(RW)  :                 org = 0x50000000 , len = 0x4000
+  lp_ram_seg(RW)  :                 org = 0x50000000 , len = 0x4000 - ESP_BOOTLOADER_RESERVE_RTC
 #endif // CONFIG_ULP_COPROC_ENABLED
 
 }

+ 1 - 1
components/esp_system/ld/esp32h2/memory.ld.in

@@ -89,7 +89,7 @@ MEMORY
   /**
    * lp ram memory (RWX). Persists over deep sleep. // ESP32H2-TODO IDF-6272
    */
-  lp_ram_seg(RW)  :                org = 0x50000000 , len = 0x1000
+  lp_ram_seg(RW)  :                org = 0x50000000 , len = 0x1000 - ESP_BOOTLOADER_RESERVE_RTC
 
 }