File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
targets/TARGET_TT/TARGET_TT_M3HQ/device Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
1
2
;; TMPM3HQFDFG scatter file
2
3
3
4
;; Vector table starts at 0
13
14
14
15
;; Compatible with ISSM model
15
16
17
+ #if !defined(MBED_BOOT_STACK_SIZE)
18
+ #define MBED_BOOT_STACK_SIZE 0x400
19
+ #endif
20
+
21
+ #define Stack_Size MBED_BOOT_STACK_SIZE
22
+
16
23
LR_IROM1 0x00000000 0x80000
17
24
{
18
25
ER_IROM1 0x00000000 0x80000
@@ -26,4 +33,7 @@ LR_IROM1 0x00000000 0x80000
26
33
{
27
34
.ANY (+RW, +ZI)
28
35
}
36
+
37
+ ARM_LIB_STACK 0x200002D8+0x10000 EMPTY -Stack_Size { ; Stack region growing down
38
+ }
29
39
}
Original file line number Diff line number Diff line change 7
7
RAM (rwx) : ORIGIN = (0x20000000 + 0x2D8), LENGTH = (64K - 0x2D8)
8
8
}
9
9
10
+ #if !defined(MBED_BOOT_STACK_SIZE)
11
+ #define MBED_BOOT_STACK_SIZE 0x400
12
+ #endif
13
+
10
14
/* Linker script to place sections and symbol values. Should be used together
11
15
* with other linker script that defines memory regions FLASH and RAM.
12
16
* It references following symbols, which must be defined in code :
@@ -153,7 +157,7 @@ SECTIONS
153
157
/* Set stack top to end of RAM, and stack limit move down by
154
158
* size of stack_dummy section */
155
159
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
156
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
160
+ __StackLimit = __StackTop - MBED_BOOT_STACK_SIZE ;
157
161
PROVIDE (__stack = __StackTop);
158
162
159
163
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -9,8 +9,10 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x200002D8;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
11
11
/*-Sizes-*/
12
- /*Heap 1/4 of ram and stack 1/8*/
13
- define symbol __ICFEDIT_size_cstack__ = 0x400;
12
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
13
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
14
+ }
15
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
14
16
define symbol __ICFEDIT_size_heap__ = 0x2000;
15
17
/**** End of ICF editor section. ###ICF###*/
16
18
You can’t perform that action at this time.
0 commit comments