Skip to content

Commit 9ef6eba

Browse files
committed
chore(h5): declare _sstack in all linker script
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 7efdba3 commit 9ef6eba

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

variants/STM32H5xx/H503CB(T-U)/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H503KBU/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H503RBT/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H562R(G-I)T/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H563IIKxQ_H573IIKxQ/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H563R(G-I)T_H573RIT/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

variants/STM32H5xx/H563Z(G-I)T_H573ZIT/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENTRY(Reset_Handler)
3737

3838
/* Highest address of the user mode stack */
3939
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_sstack = _estack - _Min_Stack_Size;
4041

4142
_Min_Heap_Size = 0x200; /* required amount of heap */
4243
_Min_Stack_Size = 0x400; /* required amount of stack */

0 commit comments

Comments
 (0)