risc-v/espressif: Fix bootloader and app potential IRAM overlap

Related to a recent fix from esp-idf:
0fb0be3817

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2023-03-15 09:22:50 -03:00 committed by Alan Carvalho de Assis
parent d0679af1d8
commit c44d55c70c
5 changed files with 26 additions and 26 deletions

View File

@ -43,12 +43,12 @@
/* 2nd stage bootloader iram_loader_seg start address */
#define SRAM_DRAM_END 0x403d0000 - I_D_SRAM_OFFSET
#define SRAM_DRAM_END (0x403ce710 - 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
#define I_D_SRAM_SIZE (SRAM_DRAM_END - SRAM_DRAM_ORG)
#ifdef CONFIG_ESP32C3_FLASH_2M
# define FLASH_SIZE 0x200000

View File

@ -36,12 +36,12 @@
/* 2nd stage bootloader iram_loader_seg start address */
#define SRAM_DRAM_END 0x40880000 - I_D_SRAM_OFFSET
#define SRAM_DRAM_END (0x4086e610 - I_D_SRAM_OFFSET)
#define SRAM_IRAM_ORG (SRAM_IRAM_START)
#define SRAM_DRAM_ORG (SRAM_DRAM_START)
#define I_D_SRAM_SIZE SRAM_DRAM_END - SRAM_DRAM_ORG
#define I_D_SRAM_SIZE (SRAM_DRAM_END - SRAM_DRAM_ORG)
/* IDRAM0_2_SEG_SIZE_DEFAULT is used when page size is 64KB */

View File

@ -41,12 +41,12 @@
/* 2nd stage bootloader iram_loader_seg start address */
#define SRAM_DRAM_END 0x403d0000 - I_D_SRAM_OFFSET
#define SRAM_DRAM_END (0x403ce710 - 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
#define I_D_SRAM_SIZE (SRAM_DRAM_END - SRAM_DRAM_ORG)
MEMORY
{

View File

@ -38,12 +38,12 @@
/* 2nd stage bootloader iram_loader_seg start address */
#define SRAM_DRAM_END 0x40880000 - I_D_SRAM_OFFSET
#define SRAM_DRAM_END (0x4086e610 - I_D_SRAM_OFFSET)
#define SRAM_IRAM_ORG (SRAM_IRAM_START)
#define SRAM_DRAM_ORG (SRAM_DRAM_START)
#define I_D_SRAM_SIZE SRAM_DRAM_END - SRAM_DRAM_ORG
#define I_D_SRAM_SIZE (SRAM_DRAM_END - SRAM_DRAM_ORG)
/* IDRAM0_2_SEG_SIZE_DEFAULT is used when page size is 64KB */

View File

@ -38,12 +38,12 @@
/* 2nd stage bootloader iram_loader_seg start address */
#define SRAM_DRAM_END 0x40850000 - I_D_SRAM_OFFSET
#define SRAM_DRAM_END (0x4083efd0 - I_D_SRAM_OFFSET)
#define SRAM_IRAM_ORG (SRAM_IRAM_START)
#define SRAM_DRAM_ORG (SRAM_DRAM_START)
#define I_D_SRAM_SIZE SRAM_DRAM_END - SRAM_DRAM_ORG
#define I_D_SRAM_SIZE (SRAM_DRAM_END - SRAM_DRAM_ORG)
/* IDRAM0_2_SEG_SIZE_DEFAULT is used when page size is 64KB */