aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/stm32f439.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/boards/stm32f439.ld')
-rw-r--r--ports/stm32/boards/stm32f439.ld2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/boards/stm32f439.ld b/ports/stm32/boards/stm32f439.ld
index 2b51c3a37..e847646b3 100644
--- a/ports/stm32/boards/stm32f439.ld
+++ b/ports/stm32/boards/stm32f439.ld
@@ -20,7 +20,7 @@ _minimum_heap_size = 16K;
/* Define the stack. The stack is full descending so begins just above last byte
of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
-_estack = ORIGIN(RAM) + LENGTH(RAM);
+_estack = ORIGIN(RAM) + LENGTH(RAM) - _estack_reserve;
_sstack = _estack - 16K; /* tunable */
/* RAM extents for the garbage collector */