gcc和mdk都能编译成功

This commit is contained in:
andy
2023-11-01 23:51:19 +08:00
parent ddeec88a89
commit 17729e664f
17 changed files with 563 additions and 27 deletions

View File

@@ -55,14 +55,14 @@ ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_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 */
_Min_Heap_Size = 0x000; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
/* Specify the memory areas */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 256K
RAM (xrw) : ORIGIN = 0x20000020, LENGTH = 0xbfe0
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 16K
}
/* Define output sections */