fix: add __stack_end defsym for fault_handler MPU guard (Issue #678)
STM32Cube ld script provides _estack but not __stack_end. Define __stack_end = _estack - 0x1000 (_Min_Stack_Size) via --defsym so fault_mpu_guard_init() and fault_mem_c() can locate the stack bottom. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ea5203b67d
commit
56c59f60fe
@ -16,3 +16,4 @@ build_flags =
|
|||||||
-Os
|
-Os
|
||||||
-Wl,--defsym,_Min_Heap_Size=0x2000
|
-Wl,--defsym,_Min_Heap_Size=0x2000
|
||||||
-Wl,--defsym,_Min_Stack_Size=0x1000
|
-Wl,--defsym,_Min_Stack_Size=0x1000
|
||||||
|
-Wl,--defsym,__stack_end=_estack-0x1000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user