stm32wl: reserve 2KB of stack via linker script to match NRF52, change sbrkHeadroom to use the start of the reserved stack region instead of the current stack pointer

The linker script was created by merging variants/STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I/ldscript.ld and system/ldscript.ld from stm32duino/Arduino_Core_STM32.
This commit is contained in:
Chloe Bethel
2026-04-16 13:57:21 +01:00
committed by Chloe Bethel
parent 0ee5777c15
commit 31418ca821
3 changed files with 217 additions and 4 deletions
+3
View File
@@ -58,3 +58,6 @@ lib_deps =
lib_ignore =
OneButton
; Set a custom linker script with a higher MinStackSize value, to match NRF52.
board_build.ldscript = $PROJECT_DIR/variants/stm32/stm32wle5xx.ld