Skip to content

Commit 328e4a5

Browse files
FacepalmMutedkalowsk
authored andcommitted
soc: espressif: esp32s3: Adjust BOOTLOADER_DRAM_SEG_LEN for worst case
Larger image partitions require more space in DRAM due to the increase in .bss.sector_buffers. Each sector in .bss.sector_buffers consumes 16 bytes. In the worst case scenario, such as with the ESP32S3 N32R8V, which has 32 MB of flash and most likely 12 MB image partition, an addition of 0xc000 should be sufficient to accommodate this. Signed-off-by: Nik Schewtschuk <[email protected]>
1 parent 2af45d1 commit 328e4a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soc/espressif/esp32s3/memory.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define SRAM0_IRAM_START 0x40370000
1111
#define SRAM0_SIZE 0x8000
1212
#define SRAM1_DRAM_START 0x3fc88000
13+
1314
/* IRAM equivalent address where DRAM actually start */
1415
#define SRAM1_IRAM_START (SRAM0_IRAM_START + SRAM0_SIZE)
1516
#define SRAM2_DRAM_START 0x3fcf0000
@@ -49,7 +50,7 @@
4950

5051
/* For safety margin between bootloader data section and startup stacks */
5152
#define BOOTLOADER_STACK_OVERHEAD 0x0
52-
#define BOOTLOADER_DRAM_SEG_LEN 0x9000
53+
#define BOOTLOADER_DRAM_SEG_LEN 0x15000
5354
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1a00
5455
#define BOOTLOADER_IRAM_SEG_LEN 0xc000
5556

0 commit comments

Comments
 (0)