Skip to content

Commit 35cf5ac

Browse files
committed
Correct end of stack in linker
1 parent 05c5bd2 commit 35cf5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: variants/BLUEPILL_F103C8/ldscript.ld

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
** File : ldscript.ld
66
**
77
** Abstract : Linker script for STM32F103C(8-B)Tx Device with
8-
** 64/128KByte FLASH, 20KByte RAM
8+
** 32/64/128KByte FLASH, 10/20KByte RAM
99
**
1010
** Set heap size, stack size and stack location according
1111
** to application requirements.
@@ -52,7 +52,7 @@
5252
ENTRY(Reset_Handler)
5353

5454
/* Highest address of the user mode stack */
55-
_estack = 0x20005000; /* end of RAM */
55+
_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* end of RAM */
5656
/* Generate a link error if heap and stack don't fit into RAM */
5757
_Min_Heap_Size = 0x200; /* required amount of heap */
5858
_Min_Stack_Size = 0x400; /* required amount of stack */

0 commit comments

Comments
 (0)