Skip to content

Commit 3176ec5

Browse files
brandon-exactmmahadevan108
authored andcommitted
soc: esp32s3: bump esp32s3 bootloader iram and dram sizes.
Currently the RAM allocated for the bootloader is not enough to use MCUBoot with crypto signatures. This commit bumps the #defines accordingly to fix compile errors with ecdsa_p256 and RSA. Signed-off-by: Brandon Allen <[email protected]>
1 parent f8a4a2f commit 3176ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/espressif/esp32s3/memory.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545

4646
/* For safety margin between bootloader data section and startup stacks */
4747
#define BOOTLOADER_STACK_OVERHEAD 0x0
48-
#define BOOTLOADER_DRAM_SEG_LEN 0x8000
48+
#define BOOTLOADER_DRAM_SEG_LEN 0x9000
4949
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1a00
50-
#define BOOTLOADER_IRAM_SEG_LEN 0xa800
50+
#define BOOTLOADER_IRAM_SEG_LEN 0xc000
5151

5252
/* Start of the lower region is determined by region size and the end of the higher region */
5353
#define BOOTLOADER_IRAM_LOADER_SEG_START (BOOTLOADER_USER_DRAM_END - BOOTLOADER_STACK_OVERHEAD + \

0 commit comments

Comments
 (0)