File tree Expand file tree Collapse file tree 3 files changed +42
-5
lines changed
TARGET_LPC11U6X/device/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68
TARGET_LPC15XX/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 8
8
* By LPCXpresso v7.2.0 [Build 153] [2014-05-19] on Sat Jun 14 15 :26 :54 JST 2014
9
9
*/
10
10
11
+
12
+ #if !defined(MBED_BOOT_STACK_SIZE)
13
+ #define MBED_BOOT_STACK_SIZE 0x400
14
+ #endif
15
+
16
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
17
+
11
18
MEMORY
12
19
{
13
20
/* Define each memory region */
@@ -229,7 +236,32 @@ SECTIONS
229
236
. = ALIGN (8) ;
230
237
_end_noinit = .;
231
238
} > Ram0_32
232
-
239
+
233
240
PROVIDE (_pvHeapStart = .);
234
- PROVIDE (_vStackTop = __top_Ram0_32 - 0);
241
+ .heap :
242
+ {
243
+ __end__ = .;
244
+ end = __end__;
245
+ *(.heap*)
246
+ . = ORIGIN (Ram0_32) + LENGTH (Ram0_32) - STACK_SIZE;
247
+ __HeapLimit = .;
248
+ } > Ram0_32
249
+
250
+
251
+ /* .stack_dummy section doesn't contains any symbols. It is only
252
+ * used for linker to calculate size of stack sections, and assign
253
+ * values to stack symbols later */
254
+ .stack_dummy :
255
+ {
256
+ *(.stack)
257
+ } > Ram0_32
258
+
259
+ /* Set stack top to end of RAM, and stack limit move down by
260
+ * size of stack_dummy section */
261
+ __StackTop = ORIGIN (Ram0_32) + LENGTH (Ram0_32);
262
+ __StackLimit = __StackTop - STACK_SIZE;
263
+ PROVIDE (__stack = __StackTop);
264
+
265
+ PROVIDE (__stack = __StackTop);
266
+ PROVIDE (_vStackTop = __StackTop);
235
267
}
Original file line number Diff line number Diff line change @@ -138,20 +138,22 @@ SECTIONS
138
138
__end__ = .;
139
139
end = __end__;
140
140
*(.heap*)
141
+ . = ORIGIN (Ram1_16) + LENGTH (Ram1_16);
141
142
__HeapLimit = .;
142
- } > Ram0_16
143
+ } > Ram1_16
144
+
143
145
144
146
/* .stack_dummy section doesn't contains any symbols. It is only
145
147
* used for linker to calculate size of stack sections, and assign
146
148
* values to stack symbols later */
147
149
.stack_dummy :
148
150
{
149
151
*(.stack)
150
- } > Ram0_16
152
+ } > Ram2_4
151
153
152
154
/* Set stack top to end of RAM, and stack limit move down by
153
155
* size of stack_dummy section */
154
- __StackTop = ORIGIN (Ram0_16) + LENGTH (Ram0_16) + LENGTH (Ram1_16 ) + LENGTH (Ram2_4);
156
+ __StackTop = ORIGIN (Ram2_4 ) + LENGTH (Ram2_4);
155
157
__StackLimit = __StackTop - STACK_SIZE;
156
158
PROVIDE (__stack = __StackTop);
157
159
Original file line number Diff line number Diff line change 515
515
" SLEEP" ,
516
516
" SPI"
517
517
],
518
+ "macros" : [
519
+ " MBED_FAULT_HANDLER_DISABLED"
520
+ ],
518
521
"default_lib" : " small" ,
519
522
"release_versions" : [" 2" ],
520
523
"device_name" : " LPC11U68JBD100"
You can’t perform that action at this time.
0 commit comments