Skip to content

Commit abdb657

Browse files
projectgusespressif-bot
authored andcommitted
bootloader esp32s2: Increase bootloader DRAM & IRAM allowance
Bootloader DRAM now ends at 0x3FFEAB00 which is the start of ROM static RAM (reclaimable after app is running). IRAM loader segment increased by 8KB. Available total static RAM for the app is now reduced by 16KB.
1 parent 33979a9 commit abdb657

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/bootloader/subproject/main/ld/esp32s2/bootloader.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
MEMORY
77
{
8-
iram_seg (RWX) : org = 0x40050000, len = 0x4000 /* 16KB, SRAM Block_14 */
9-
iram_loader_seg (RWX) : org = 0x40054000, len = 0x4000 /* 16KB, SRAM Block_15 */
10-
dram_seg (RW) : org = 0x3FFE8000, len = 0x2800 /* 10KB, Top of SRAM Block_16, and before ROM data and stack */
8+
iram_seg (RWX) : org = 0x4004c000, len = 0x4000 /* SRAM Block 13 */
9+
iram_loader_seg (RWX) : org = 0x40050000, len = 0x6000 /* SRAM Block 14 & part of 15 */
10+
dram_seg (RW) : org = 0x3FFE6000, len = 0x4B00 /* Part SRAM Blocks 15 & 16, ROM static buffer starts at end of this region (reclaimed after app runs) */
1111
}
1212

1313
/* Default entry point: */

components/esp32s2/ld/esp32s2.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define RAM_IRAM_START 0x40020000
3535
#define RAM_DRAM_START 0x3FFB0000
3636

37-
#define DATA_RAM_END 0x3FFE4000 /* 2nd stage bootloader iram_loader_seg starts at block 15 */
37+
#define DATA_RAM_END 0x3FFE0000 /* 2nd stage bootloader iram_loader_seg starts at SRAM block 14 (reclaimed after app boots) */
3838

3939
#define IRAM_ORG (RAM_IRAM_START + CONFIG_ESP32S2_INSTRUCTION_CACHE_SIZE \
4040
+ CONFIG_ESP32S2_DATA_CACHE_SIZE)

0 commit comments

Comments
 (0)