Skip to content

Commit

Permalink
soc: esp32: change SRAM1_IRAM_START macro definition
Browse files Browse the repository at this point in the history
Changes the SRAM1_IRAM_START macro definition for:
- esp32c2
- esp32c3

Signed-off-by: Marcio Ribeiro <[email protected]>
  • Loading branch information
wmrsouza committed Dec 10, 2024
1 parent 6ebac0b commit 3254291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion soc/espressif/esp32c2/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion soc/espressif/esp32c3/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3254291

Please sign in to comment.