Skip to content

Commit 11ab67e

Browse files
committed
chore(u3): declare _sstack in all linker script
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent bd9b406 commit 11ab67e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

variants/STM32U3xx/U375R(E-G)TxQ_U385RGTxQ/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
4141

4242
_Min_Heap_Size = 0x200; /* required amount of heap */
4343
_Min_Stack_Size = 0x400; /* required amount of stack */
44+
_sstack = _estack - _Min_Stack_Size;
4445

4546
/* Memories definition */
4647
MEMORY

variants/STM32U3xx/U375V(E-G)I_U385VGI/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
4141

4242
_Min_Heap_Size = 0x200; /* required amount of heap */
4343
_Min_Stack_Size = 0x400; /* required amount of stack */
44+
_sstack = _estack - _Min_Stack_Size;
4445

4546
/* Memories definition */
4647
MEMORY

variants/STM32U3xx/U375V(E-G)IxQ_U385VGIxQ/ldscript.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
4141

4242
_Min_Heap_Size = 0x200; /* required amount of heap */
4343
_Min_Stack_Size = 0x400; /* required amount of stack */
44+
_sstack = _estack - _Min_Stack_Size;
4445

4546
/* Memories definition */
4647
MEMORY

0 commit comments

Comments
 (0)