File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 5252ENTRY (Reset_Handler)
5353
5454/* Highest address of the user mode stack */
55- _estack = 0x20020000 ; /* end of RAM */
55+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
5656/* Generate a link error if heap and stack don't fit into RAM */
5757_Min_Heap_Size = 0x200 ; /* required amount of heap */
5858_Min_Stack_Size = 0x400 ; /* required amount of stack */
5959
6060/* Specify the memory areas */
6161MEMORY
6262{
63- RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
63+ RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = LD_MAX_DATA_SIZE
6464CCMRAM (rw) : ORIGIN = 0x10000000 , LENGTH = 64K
65- FLASH (rx) : ORIGIN = 0x8000000 , LENGTH = LD_MAX_SIZE
65+ FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET , LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
6666}
6767
6868/* Define output sections */
Original file line number Diff line number Diff line change 5252ENTRY (Reset_Handler)
5353
5454/* Highest address of the user mode stack */
55- _estack = 0x20020000 ; /* end of RAM */
55+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
5656/* Generate a link error if heap and stack don't fit into RAM */
5757_Min_Heap_Size = 0x200 ; /* required amount of heap */
5858_Min_Stack_Size = 0x400 ; /* required amount of stack */
5959
6060/* Specify the memory areas */
6161MEMORY
6262{
63- RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
63+ RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = LD_MAX_DATA_SIZE
6464CCMRAM (rw) : ORIGIN = 0x10000000 , LENGTH = 64K
65- FLASH (rx) : ORIGIN = 0x8000000 , LENGTH = 512K
65+ FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET , LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
6666}
6767
6868/* Define output sections */
Original file line number Diff line number Diff line change 5252ENTRY (Reset_Handler)
5353
5454/* Highest address of the user mode stack */
55- _estack = 0x20020000 ; /* end of RAM */
55+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
5656/* Generate a link error if heap and stack don't fit into RAM */
5757_Min_Heap_Size = 0x200 ; /* required amount of heap */
5858_Min_Stack_Size = 0x400 ; /* required amount of stack */
5959
6060/* Specify the memory areas */
6161MEMORY
6262{
63- RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
63+ RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = LD_MAX_DATA_SIZE
6464CCMRAM (rw) : ORIGIN = 0x10000000 , LENGTH = 64K
65- FLASH (rx) : ORIGIN = 0x8000000 , LENGTH = 512K
65+ FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET , LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
6666}
6767
6868/* Define output sections */
@@ -204,5 +204,3 @@ SECTIONS
204204
205205 .ARM .attributes 0 : { *(.ARM .attributes ) }
206206}
207-
208-
You can’t perform that action at this time.
0 commit comments