File tree Expand file tree Collapse file tree 15 files changed +109
-17
lines changed Expand file tree Collapse file tree 15 files changed +109
-17
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;; TMPM066FWUG scatter file
2
4
3
5
;; Vector table starts at 0
13
15
14
16
;; Compatible with ISSM model
15
17
18
+ #if !defined(MBED_BOOT_STACK_SIZE)
19
+ #define MBED_BOOT_STACK_SIZE 0x400
20
+ #endif
21
+
22
+ #define Stack_Size MBED_BOOT_STACK_SIZE
23
+
16
24
LR_IROM1 0x00000000 0x20000
17
25
{
18
26
ER_IROM1 0x00000000 0x20000
@@ -25,8 +33,11 @@ LR_IROM1 0x00000000 0x20000
25
33
}
26
34
27
35
/* 8_byte_aligned(32 + 16 vect * 4 bytes) = 8_byte_aligned(0xC0) */
28
- RW_IRAM1 0x200000C0 (0x4000 - 0xC0)
36
+ RW_IRAM1 0x200000C0 (0x4000 - 0xC0 - Stack_Size )
29
37
{
30
38
.ANY (+RW, +ZI)
31
39
}
40
+
41
+ ARM_LIB_STACK (0x200000C0+0x4000) EMPTY -Stack_Size { ; stack
42
+ }
32
43
}
Original file line number Diff line number Diff line change 1
1
/* Linker script for Toshiba TMPM066 */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
8
+
3
9
/* Linker script to configure memory regions. */
4
10
MEMORY
5
11
{
@@ -142,7 +148,7 @@ SECTIONS
142
148
/* Set stack top to end of RAM, and stack limit move down by
143
149
* size of stack_dummy section */
144
150
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
145
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
151
+ __StackLimit = __StackTop - STACK_SIZE ;
146
152
PROVIDE (__stack = __StackTop);
147
153
148
154
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0001FFFF;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
11
11
/*-Sizes-*/
12
- 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;
13
16
define symbol __ICFEDIT_size_heap__ = 0xC00;
14
17
/**** End of ICF editor section. ###ICF###*/
15
18
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;; TMPM3H6FWFG scatter file
2
4
3
5
;; Vector table starts at 0
13
15
14
16
;; Compatible with ISSM model
15
17
18
+ #if !defined(MBED_BOOT_STACK_SIZE)
19
+ #define MBED_BOOT_STACK_SIZE 0x400
20
+ #endif
21
+
22
+ #define Stack_Size MBED_BOOT_STACK_SIZE
23
+
16
24
LR_IROM1 0x00000000 0x20000
17
25
{
18
26
ER_IROM1 0x00000000 0x20000
@@ -22,8 +30,11 @@ LR_IROM1 0x00000000 0x20000
22
30
.ANY (+RO)
23
31
}
24
32
; 8_byte_aligned(117 + 16 vect * 4 bytes) = 8_byte_aligned(0x214) = 0x218
25
- RW_IRAM1 (0x20000000 + 0x218) (0x4000 - 0x218)
33
+ RW_IRAM1 (0x20000000 + 0x218) (0x4000 - 0x218 - Stack_Size )
26
34
{
27
35
.ANY (+RW, +ZI)
28
36
}
37
+
38
+ ARM_LIB_STACK (0x20000000+0x4000) EMPTY -Stack_Size { ; stack
39
+ }
29
40
}
Original file line number Diff line number Diff line change 1
1
/* Linker script for Toshiba TMPM3H6 */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
8
+
3
9
/* Linker script to configure memory regions. */
4
10
MEMORY
5
11
{
@@ -154,7 +160,7 @@ SECTIONS
154
160
/* Set stack top to end of RAM, and stack limit move down by
155
161
* size of stack_dummy section */
156
162
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
157
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
163
+ __StackLimit = __StackTop - STACK_SIZE ;
158
164
PROVIDE (__stack = __StackTop);
159
165
160
166
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ define symbol __ICFEDIT_region_ROM_end__ = 0x0001FFFF;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x20000218; /* 8_byte_aligned(117 + 16 vect * 4 bytes) */
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
11
11
/*-Sizes-*/
12
- 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;
13
16
define symbol __ICFEDIT_size_heap__ = 0xC00;
14
17
/**** End of ICF editor section. ###ICF###*/
15
18
Original file line number Diff line number Diff line change 23
23
#define MBED_APP_SIZE 0x00080000
24
24
#endif
25
25
26
+ #if !defined(MBED_BOOT_STACK_SIZE)
27
+ #define MBED_BOOT_STACK_SIZE 0x400
28
+ #endif
29
+
30
+ #define Stack_Size MBED_BOOT_STACK_SIZE
31
+
26
32
LR_IROM1 MBED_APP_START MBED_APP_SIZE
27
33
{
28
34
ER_IROM1 MBED_APP_START MBED_APP_SIZE
@@ -32,8 +38,11 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE
32
38
.ANY (+RO)
33
39
}
34
40
35
- RW_IRAM1 0x200002D8 (0x10000 - 0x2D8)
41
+ RW_IRAM1 0x200002D8 (0x10000 - 0x2D8 - Stack_Size )
36
42
{
37
43
.ANY (+RW, +ZI)
38
44
}
45
+
46
+ ARM_LIB_STACK (0x200002D8+0x10000) EMPTY -Stack_Size { ; stack
47
+ }
39
48
}
Original file line number Diff line number Diff line change 8
8
#define MBED_APP_SIZE 512K
9
9
#endif
10
10
11
+ #if !defined(MBED_BOOT_STACK_SIZE)
12
+ #define MBED_BOOT_STACK_SIZE 0x400
13
+ #endif
14
+
15
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
16
+
11
17
/* Linker script to configure memory regions. */
12
18
MEMORY
13
19
{
@@ -162,7 +168,7 @@ SECTIONS
162
168
/* Set stack top to end of RAM, and stack limit move down by
163
169
* size of stack_dummy section */
164
170
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
165
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
171
+ __StackLimit = __StackTop - STACK_SIZE ;
166
172
PROVIDE (__stack = __StackTop);
167
173
168
174
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
13
13
define symbol __ICFEDIT_region_RAM_start__ = 0x200002D8;
14
14
define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
15
15
/*Heap 1/4 of ram and stack 1/8*/
16
- define symbol __ICFEDIT_size_cstack__ = 0x400;
16
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
17
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
18
+ }
19
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
17
20
define symbol __ICFEDIT_size_heap__ = 0x2000;
18
21
/**** End of ICF editor section. ###ICF###*/
19
22
Original file line number Diff line number Diff line change 22
22
#define MBED_APP_SIZE 0x100000
23
23
#endif
24
24
25
+ #if !defined(MBED_BOOT_STACK_SIZE)
26
+ #define MBED_BOOT_STACK_SIZE 0x400
27
+ #endif
28
+
29
+ #define Stack_Size MBED_BOOT_STACK_SIZE
30
+
25
31
; TMPM46B: 1024 KB FLASH (0x100000) + 512 KB SRAM (0x80000)
26
32
27
33
LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
@@ -33,9 +39,12 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
33
39
.ANY (+RO)
34
40
}
35
41
36
- RW_IRAM1 0x200001E0 (0x80000 - 0x1E0)
42
+ RW_IRAM1 0x200001E0 (0x80000 - 0x1E0 - Stack_Size )
37
43
{
38
44
tmpm46b_fc.o(+RO)
39
45
.ANY (+RW, +ZI)
40
46
}
47
+
48
+ ARM_LIB_STACK (0x200001E0+0x80000) EMPTY -Stack_Size { ; stack
49
+ }
41
50
}
Original file line number Diff line number Diff line change 1
1
/* Linker script for Toshiba TMPM46B */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
8
+
3
9
/* Linker script to configure memory regions. */
4
10
5
11
#if !defined(MBED_APP_START)
@@ -199,7 +205,7 @@ SECTIONS
199
205
/* Set stack top to end of RAM, and stack limit move down by
200
206
* size of stack_dummy section */
201
207
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
202
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
208
+ __StackLimit = __StackTop - STACK_SIZE ;
203
209
PROVIDE (__stack = __StackTop);
204
210
205
211
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2006FFFF;
13
13
define symbol __ICFEDIT_region_BRAM_start__ = 0x20070000;
14
14
define symbol __ICFEDIT_region_BRAM_end__ = 0x200807FF;
15
15
/*-Sizes-*/
16
- /*Heap 1/4 of ram and stack 1/8*/
17
- define symbol __ICFEDIT_size_cstack__ = 0x10000;
16
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
17
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
18
+ }
19
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
18
20
define symbol __ICFEDIT_size_heap__ = 0x20000;
19
21
/**** End of ICF editor section. ###ICF###*/
20
22
Original file line number Diff line number Diff line change 22
22
#define MBED_APP_SIZE 0x000180000
23
23
#endif
24
24
25
+ #if !defined(MBED_BOOT_STACK_SIZE)
26
+ #define MBED_BOOT_STACK_SIZE 0x400
27
+ #endif
28
+
29
+ #define Stack_Size MBED_BOOT_STACK_SIZE
30
+
25
31
; TMPM4G9: 1536 KB FLASH (0x180000) + 192 KB SRAM (0x30000)
26
32
27
33
LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
@@ -33,9 +39,12 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
33
39
.ANY (+RO)
34
40
}
35
41
36
- RW_IRAM1 0x20000320 (0x30000 - 0x320)
42
+ RW_IRAM1 0x20000320 (0x30000 - 0x320 - -Stack_Size )
37
43
{
38
44
tmpm4g9_fc.o (+RO)
39
45
.ANY (+RW, +ZI)
40
46
}
47
+
48
+ ARM_LIB_STACK (0x20000320+0x30000) EMPTY -Stack_Size { ; stack
49
+ }
41
50
}
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
@@ -199,7 +205,7 @@ SECTIONS
199
205
/* Set stack top to end of RAM, and stack limit move down by
200
206
* size of stack_dummy section */
201
207
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
202
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
208
+ __StackLimit = __StackTop - STACK_SIZE ;
203
209
PROVIDE (__stack = __StackTop);
204
210
205
211
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
13
13
define symbol __ICFEDIT_region_BRAM_start__ = 0x20030000;
14
14
define symbol __ICFEDIT_region_BRAM_end__ = 0x200307FF;
15
15
/*-Sizes-*/
16
- /*Heap 1/4 of ram and stack 1/8*/
17
- define symbol __ICFEDIT_size_cstack__ = 0x0400;
16
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
17
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
18
+ }
19
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
18
20
define symbol __ICFEDIT_size_heap__ = 0x6000;
19
21
/**** End of ICF editor section. ###ICF###*/
20
22
You can’t perform that action at this time.
0 commit comments