From 5f2cd42bd87af72057e5d6f9f4bd14b49a23331a Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Sat, 14 Feb 2026 11:12:22 +0800 Subject: [PATCH] fix(soc): link rtc_io_num_map to DRAM --- components/soc/esp32/rtc_io_periph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/soc/esp32/rtc_io_periph.c b/components/soc/esp32/rtc_io_periph.c index b3e9df3d06..198a7b06de 100644 --- a/components/soc/esp32/rtc_io_periph.c +++ b/components/soc/esp32/rtc_io_periph.c @@ -4,10 +4,11 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include "esp_attr.h" #include "soc/rtc_periph.h" #include "soc/rtc_io_reg.h" -const int8_t rtc_io_num_map[SOC_GPIO_PIN_COUNT] = { +DRAM_ATTR const int8_t rtc_io_num_map[SOC_GPIO_PIN_COUNT] = { RTCIO_GPIO0_CHANNEL, //GPIO0 -1,//GPIO1 RTCIO_GPIO2_CHANNEL, //GPIO2