File tree Expand file tree Collapse file tree 9 files changed +69
-12
lines changed
targets/TARGET_WIZNET/TARGET_W7500x
TARGET_WIZwiki_W7500/device
TARGET_WIZwiki_W7500ECO/device
TARGET_WIZwiki_W7500P/device Expand file tree Collapse file tree 9 files changed +69
-12
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ #define Stack_Size MBED_BOOT_STACK_SIZE
8
+
1
9
; *************************************************************
2
10
; *** Scatter-Loading Description File generated by uVision ***
3
11
; *************************************************************
@@ -8,8 +16,10 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
8
16
*(InRoot$$Sections)
9
17
.ANY (+RO)
10
18
}
11
- RW_IRAM1 0x20000000 0x00004000 { ; RW data
19
+ RW_IRAM1 0x20000000 0x00004000-Stack_Size { ; RW data
12
20
.ANY (+RW +ZI)
13
21
}
22
+ ARM_LIB_STACK (0x20000000+0x00004000) EMPTY -Stack_Size { ; stack
23
+ }
14
24
}
15
25
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
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
+
2
9
MEMORY
3
10
{
4
11
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x20000 /* 128K */
@@ -143,7 +150,7 @@ SECTIONS
143
150
/* Set stack top to end of RAM, and stack limit move down by
144
151
* size of stack_dummy section */
145
152
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
153
+ __StackLimit = __StackTop - STACK_SIZE ;
147
154
PROVIDE (__stack = __StackTop);
148
155
149
156
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
8
8
define symbol __ICFEDIT_region_ROM_end__ = 0x00020000;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
11
- /*-Heap 1/4 of ram and stack 1/8-*/
12
- define symbol __ICFEDIT_size_cstack__ = 0x00000400;
11
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
12
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
13
+ }
14
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
13
15
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
14
16
/**** End of ICF editor section. ###ICF###*/
15
17
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ #define Stack_Size MBED_BOOT_STACK_SIZE
8
+
1
9
; *************************************************************
2
10
; *** Scatter-Loading Description File generated by uVision ***
3
11
; *************************************************************
@@ -8,8 +16,10 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
8
16
*(InRoot$$Sections)
9
17
.ANY (+RO)
10
18
}
11
- RW_IRAM1 0x20000000 0x00004000 { ; RW data
19
+ RW_IRAM1 0x20000000 0x00004000-Stack_Size { ; RW data
12
20
.ANY (+RW +ZI)
13
21
}
22
+ ARM_LIB_STACK (0x20000000+0x00004000) EMPTY -Stack_Size { ; stack
23
+ }
14
24
}
15
25
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
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
+
2
9
MEMORY
3
10
{
4
11
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x20000 /* 128K */
@@ -143,7 +150,7 @@ SECTIONS
143
150
/* Set stack top to end of RAM, and stack limit move down by
144
151
* size of stack_dummy section */
145
152
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
153
+ __StackLimit = __StackTop - STACK_SIZE ;
147
154
PROVIDE (__stack = __StackTop);
148
155
149
156
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
8
8
define symbol __ICFEDIT_region_ROM_end__ = 0x00020000;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
11
- /*-Heap 1/4 of ram and stack 1/8-*/
12
- define symbol __ICFEDIT_size_cstack__ = 0x00000400;
11
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
12
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
13
+ }
14
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
13
15
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
14
16
/**** End of ICF editor section. ###ICF###*/
15
17
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x400
5
+ #endif
6
+
7
+ #define Stack_Size MBED_BOOT_STACK_SIZE
8
+
1
9
; *************************************************************
2
10
; *** Scatter-Loading Description File generated by uVision ***
3
11
; *************************************************************
@@ -8,8 +16,10 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
8
16
*(InRoot$$Sections)
9
17
.ANY (+RO)
10
18
}
11
- RW_IRAM1 0x20000000 0x00004000 { ; RW data
19
+ RW_IRAM1 0x20000000 0x00004000-Stack_Size { ; RW data
12
20
.ANY (+RW +ZI)
13
21
}
22
+ ARM_LIB_STACK (0x20000000+0x00004000) EMPTY -Stack_Size { ; stack
23
+ }
14
24
}
15
25
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
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
+
2
9
MEMORY
3
10
{
4
11
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x20000 /* 128K */
@@ -143,7 +150,7 @@ SECTIONS
143
150
/* Set stack top to end of RAM, and stack limit move down by
144
151
* size of stack_dummy section */
145
152
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
153
+ __StackLimit = __StackTop - STACK_SIZE ;
147
154
PROVIDE (__stack = __StackTop);
148
155
149
156
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
8
8
define symbol __ICFEDIT_region_ROM_end__ = 0x00020000;
9
9
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x20004000;
11
- /*-Heap 1/4 of ram and stack 1/8-*/
12
- define symbol __ICFEDIT_size_cstack__ = 0x00000400;
11
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
12
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
13
+ }
14
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
13
15
define symbol __ICFEDIT_size_heap__ = 0x00000C00;
14
16
/**** End of ICF editor section. ###ICF###*/
15
17
You can’t perform that action at this time.
0 commit comments