From 3254291e2d5bede260f1c195e89420ee8dfadb7a Mon Sep 17 00:00:00 2001 From: Marcio Ribeiro Date: Tue, 10 Dec 2024 14:03:30 -0300 Subject: [PATCH] soc: esp32: change SRAM1_IRAM_START macro definition Changes the SRAM1_IRAM_START macro definition for: - esp32c2 - esp32c3 Signed-off-by: Marcio Ribeiro --- soc/espressif/esp32c2/memory.h | 2 +- soc/espressif/esp32c3/memory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/espressif/esp32c2/memory.h b/soc/espressif/esp32c2/memory.h index 5e9db542e46ca3..fbf9a7b8f22bf7 100644 --- a/soc/espressif/esp32c2/memory.h +++ b/soc/espressif/esp32c2/memory.h @@ -9,7 +9,7 @@ #define SRAM0_SIZE DT_REG_SIZE(DT_NODELABEL(sram0)) /* SRAM1 (256kB) memory */ -#define SRAM1_IRAM_START (SRAM0_IRAM_START + SRAM0_SIZE) +#define SRAM1_IRAM_START (SRAM1_DRAM_START + IRAM_DRAM_OFFSET) #define SRAM1_DRAM_START DT_REG_ADDR(DT_NODELABEL(sram1)) #define SRAM1_SIZE DT_REG_SIZE(DT_NODELABEL(sram1)) diff --git a/soc/espressif/esp32c3/memory.h b/soc/espressif/esp32c3/memory.h index 070ca872a314b9..87a832169fc797 100644 --- a/soc/espressif/esp32c3/memory.h +++ b/soc/espressif/esp32c3/memory.h @@ -9,7 +9,7 @@ #define SRAM0_SIZE DT_REG_SIZE(DT_NODELABEL(sram0)) /* SRAM1 (384kB) memory */ #define SRAM1_DRAM_START DT_REG_ADDR(DT_NODELABEL(sram1)) -#define SRAM1_IRAM_START (SRAM0_IRAM_START + SRAM0_SIZE) +#define SRAM1_IRAM_START (SRAM1_DRAM_START + IRAM_DRAM_OFFSET) #define SRAM1_SIZE DT_REG_SIZE(DT_NODELABEL(sram1)) /* ICache size is fixed to 16KB on ESP32-C3 */ #define ICACHE_SIZE SRAM0_SIZE