File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
targets/TARGET_TT/TARGET_TT_M4G9/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
#define MBED_APP_SIZE 0x180000
11
11
#endif
12
12
13
+ #if !defined(MBED_BOOT_STACK_SIZE)
14
+ #define MBED_BOOT_STACK_SIZE 0x400
15
+ #endif
16
+
17
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
18
+
13
19
MEMORY
14
20
{
15
21
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
@@ -185,6 +191,7 @@ SECTIONS
185
191
__end__ = .;
186
192
end = __end__;
187
193
KEEP(*(.heap*))
194
+ . = ORIGIN (RAM) + LENGTH (RAM) - STACK_SIZE;
188
195
__HeapLimit = .;
189
196
} > RAM
190
197
@@ -199,7 +206,7 @@ SECTIONS
199
206
/* Set stack top to end of RAM, and stack limit move down by
200
207
* size of stack_dummy section */
201
208
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
202
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
209
+ __StackLimit = __StackTop - STACK_SIZE ;
203
210
PROVIDE (__stack = __StackTop);
204
211
205
212
/* Check if data + heap + stack exceeds RAM limit */
You can’t perform that action at this time.
0 commit comments