diff --git a/stm32f10x_link.ld b/stm32f10x_link.ld index 28047f0..0004e19 100644 --- a/stm32f10x_link.ld +++ b/stm32f10x_link.ld @@ -116,7 +116,11 @@ SECTIONS { end = . ; /* 'end' symbol defines heap location */ _end = end ; + + . = ALIGN(4); + __heap_start = . ; . = . + _min_heap_size; /* Additional space for heap and stack */ + __heap_end = . ; . = . + _min_stack_size; } > RAM