diff --git a/Libraries/STARTUP/gcc/linker/AIR32F103XB_FLASH.ld b/Libraries/STARTUP/gcc/linker/AIR32F103XB_FLASH.ld index 4134257..cbc0ea6 100644 --- a/Libraries/STARTUP/gcc/linker/AIR32F103XB_FLASH.ld +++ b/Libraries/STARTUP/gcc/linker/AIR32F103XB_FLASH.ld @@ -32,7 +32,7 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = 0x20004FFF; /* end of RAM */ +_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ /* Generate a link error if heap and stack don't fit into RAM */ _Min_Heap_Size = 0x200; /* required amount of heap */