File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 52
52
ENTRY (Reset_Handler )
53
53
54
54
/* Highest address of the user mode stack */
55
- _estack = 0x20020000 ; /* end of RAM */
55
+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
56
56
/* Generate a link error if heap and stack don't fit into RAM */
57
57
_Min_Heap_Size = 0x200; /* required amount of heap */
58
58
_Min_Stack_Size = 0x400; /* required amount of stack */
59
59
60
60
/* Specify the memory areas */
61
61
MEMORY
62
62
{
63
- RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = 128K
63
+ RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
64
64
CCMRAM (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
66
66
}
67
67
68
68
/* Define output sections */
Original file line number Diff line number Diff line change 52
52
ENTRY (Reset_Handler )
53
53
54
54
/* Highest address of the user mode stack */
55
- _estack = 0x20020000 ; /* end of RAM */
55
+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
56
56
/* Generate a link error if heap and stack don't fit into RAM */
57
57
_Min_Heap_Size = 0x200; /* required amount of heap */
58
58
_Min_Stack_Size = 0x400; /* required amount of stack */
59
59
60
60
/* Specify the memory areas */
61
61
MEMORY
62
62
{
63
- RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = 128K
63
+ RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
64
64
CCMRAM (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
66
66
}
67
67
68
68
/* Define output sections */
Original file line number Diff line number Diff line change 52
52
ENTRY (Reset_Handler )
53
53
54
54
/* Highest address of the user mode stack */
55
- _estack = 0x20020000 ; /* end of RAM */
55
+ _estack = 0x20000000 + LD_MAX_DATA_SIZE ; /* end of RAM */
56
56
/* Generate a link error if heap and stack don't fit into RAM */
57
57
_Min_Heap_Size = 0x200; /* required amount of heap */
58
58
_Min_Stack_Size = 0x400; /* required amount of stack */
59
59
60
60
/* Specify the memory areas */
61
61
MEMORY
62
62
{
63
- RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = 128K
63
+ RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
64
64
CCMRAM (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
66
66
}
67
67
68
68
/* Define output sections */
@@ -204,5 +204,3 @@ SECTIONS
204
204
205
205
.ARM.attributes 0 : { *(.ARM.attributes) }
206
206
}
207
-
208
-
You can’t perform that action at this time.
0 commit comments