From bfa9ec70f2aff7d44526bbdcfeb24e63ccd05013 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 4 Mar 2021 10:05:21 +1100 Subject: [PATCH] esp32s3: Add support for reusing RTC memory as heap --- components/soc/esp32s3/soc_memory_layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/soc/esp32s3/soc_memory_layout.c b/components/soc/esp32s3/soc_memory_layout.c index ae11ac2e7b..9da8bdcae7 100644 --- a/components/soc/esp32s3/soc_memory_layout.c +++ b/components/soc/esp32s3/soc_memory_layout.c @@ -72,6 +72,9 @@ const soc_memory_region_t soc_memory_regions[] = { #if CONFIG_ESP32S3_DATA_CACHE_32KB { 0x3FCF0000, 0x8000, 0, 0}, //Level 9, DRAM #endif +#ifdef CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP + { 0x50000000, 0x2000, 4, 0}, //Fast RTC memory +#endif }; const size_t soc_memory_region_count = sizeof(soc_memory_regions) / sizeof(soc_memory_region_t);