From 654511788e24794c03ecb810a3b5907e95b8b55c Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 28 Nov 2020 15:27:26 -0700 Subject: Fixed another bug with the linker script. Before this commit, the heap overlapped with the BSS, which predicatbly broke everything once trying to use the heap. --- linker/linker_script.ld | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linker/linker_script.ld') diff --git a/linker/linker_script.ld b/linker/linker_script.ld index 8850182..f2a99ae 100644 --- a/linker/linker_script.ld +++ b/linker/linker_script.ld @@ -53,8 +53,6 @@ SECTIONS *(.noinit); - HEAP_START = .; - HEAP_STOP = LENGTH(sram1); } >sram1 AT>flash BSS_START = .; @@ -63,4 +61,7 @@ SECTIONS . = ALIGN(0x04); } > sram1 BSS_END = .; + + HEAP_START = .; + HEAP_STOP = ORIGIN(sram1) + LENGTH(sram1); } -- cgit