Skip to content

Commit 22eb2bf

Browse files
authored
Merge pull request #137 from fpistm/Fix_ld_stack_alignement
Some linker script has the stack pointer __NOT__ 8-byte aligned
2 parents 47e9def + a4db9e7 commit 22eb2bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

variants/NUCLEO_F091RC/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ENTRY(Reset_Handler)
4747

4848
/* Highest address of the user mode stack */
49-
_estack = 0x20007FFF; /* end of RAM */
49+
_estack = 0x20008000; /* end of RAM */
5050
/* Generate a link error if heap and stack don't fit into RAM */
5151
_Min_Heap_Size = 0x200;; /* required amount of heap */
5252
_Min_Stack_Size = 0x400;; /* required amount of stack */

variants/NUCLEO_F303RE/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ENTRY(Reset_Handler)
4747

4848
/* Highest address of the user mode stack */
49-
_estack = 0x2000FFFF; /* end of RAM */
49+
_estack = 0x20010000; /* end of RAM */
5050
/* Generate a link error if heap and stack don't fit into RAM */
5151
_Min_Heap_Size = 0x200;; /* required amount of heap */
5252
_Min_Stack_Size = 0x400;; /* required amount of stack */

variants/NUCLEO_L053R8/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ENTRY(Reset_Handler)
4747

4848
/* Highest address of the user mode stack */
49-
_estack = 0x20001FFF; /* end of RAM */
49+
_estack = 0x20002000; /* end of RAM */
5050
/* Generate a link error if heap and stack don't fit into RAM */
5151
_Min_Heap_Size = 0x200;; /* required amount of heap */
5252
_Min_Stack_Size = 0x400;; /* required amount of stack */

variants/NUCLEO_L476RG/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ENTRY(Reset_Handler)
4747

4848
/* Highest address of the user mode stack */
49-
_estack = 0x20017FFF; /* end of RAM */
49+
_estack = 0x20018000; /* end of RAM */
5050
/* Generate a link error if heap and stack don't fit into RAM */
5151
_Min_Heap_Size = 0x200;; /* required amount of heap */
5252
_Min_Stack_Size = 0x400;; /* required amount of stack */

0 commit comments

Comments
 (0)