fix stm board linker define stack before memory def

This commit is contained in:
hathach
2024-04-23 12:29:56 +07:00
parent 1e882c7c24
commit a42e34701f
5 changed files with 30 additions and 30 deletions

View File

@@ -27,12 +27,6 @@
/* Entry Point */
ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
_Min_Heap_Size = 0x200 ; /* required amount of heap */
_Min_Stack_Size = 0x400 ; /* required amount of stack */
/* Memories definition */
MEMORY
{
@@ -40,6 +34,12 @@ MEMORY
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
}
/* Highest address of the user mode stack */
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
_Min_Heap_Size = 0x200 ; /* required amount of heap */
_Min_Stack_Size = 0x400 ; /* required amount of stack */
/* Sections */
SECTIONS
{