Skip to content

Commit 3adf650

Browse files
committed
Add heap symbols to esp32_c3
1 parent 27c86b6 commit 3adf650

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

port/espressif/esp/ld/esp32_c3/esp32_c3.ld.base

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,12 @@ SECTIONS
8282
microzig_bss_end = .;
8383
} > dram
8484

85+
.dram.heap (NOLOAD) :
86+
{
87+
microzig_heap_start = .;
88+
. = ORIGIN(dram) + LENGTH(dram);
89+
microzig_heap_end = .;
90+
} > dram
91+
8592
PROVIDE(__global_pointer$ = microzig_data_start + 0x800);
8693
}

port/espressif/esp/ld/esp32_c3/esp32_c3_direct_boot.ld.base

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ SECTIONS
3939
microzig_bss_end = .;
4040
} > ram0
4141

42+
.heap (NOLOAD) :
43+
{
44+
microzig_heap_start = .;
45+
. = ORIGIN(ram0) + LENGTH(ram0);
46+
microzig_heap_end = .;
47+
} > ram0
48+
4249
.flash_end :
4350
{
4451
PROVIDE(microzig_flash_end = .);

0 commit comments

Comments
 (0)