soc: espressif: adjust memory organization on linker
Adjust the memory organization to avoid overlapping critical regions from bootloaders (MCUboot and IDF) Signed-off-by: Almir Okato <almir.okato@espressif.com>
This commit is contained in:
parent
e946a13fe1
commit
af3b04238e
4 changed files with 9 additions and 4 deletions
|
@ -26,7 +26,9 @@
|
|||
#define SRAM_DRAM_START 0x3FC7C000
|
||||
#define ICACHE_SIZE 0x4000 /* ICache size is fixed to 16KB on ESP32-C3 */
|
||||
#define I_D_SRAM_OFFSET (SRAM_IRAM_START - SRAM_DRAM_START)
|
||||
#define SRAM_DRAM_END 0x403D0000 - I_D_SRAM_OFFSET /* 2nd stage bootloader iram_loader_seg start address */
|
||||
/* SRAM_DRAM_END is equivalent 2nd stage bootloader iram_loader_seg
|
||||
start address (that should not be overlapped) */
|
||||
#define SRAM_DRAM_END 0x403D0000 - I_D_SRAM_OFFSET
|
||||
#define SRAM_IRAM_ORG (SRAM_IRAM_START + ICACHE_SIZE)
|
||||
#define SRAM_DRAM_ORG (SRAM_DRAM_START + ICACHE_SIZE)
|
||||
#define I_D_SRAM_SIZE SRAM_DRAM_END - SRAM_DRAM_ORG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue