File tree Expand file tree Collapse file tree 10 files changed +73
-30
lines changed
TARGET_WIZwiki_W7500/device
TARGET_WIZwiki_W7500ECO/device
TARGET_WIZwiki_W7500P/device Expand file tree Collapse file tree 10 files changed +73
-30
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+ #include "mbed_config.h"
1
3
; *************************************************************
2
4
; *** Scatter-Loading Description File generated by uVision ***
3
5
; *************************************************************
4
6
7
+ #if (defined(__stack_size__))
8
+ #define Stack_Size __stack_size__
9
+ #else
10
+ #if (defined(MBED_CONF_RTOS_PRESENT))
11
+ #define Stack_Size 0x0400
12
+ #else
13
+ #define Stack_Size 0x1000
14
+ #endif
15
+ #endif
16
+
5
17
LR_IROM1 0x00000000 0x00020000 { ; load region size_region
6
18
ER_IROM1 0x00000000 0x00020000 { ; load address = execution address
7
19
*.o (RESET, +First)
@@ -11,5 +23,8 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
11
23
RW_IRAM1 0x20000000 0x00004000 { ; RW data
12
24
.ANY (+RW +ZI)
13
25
}
26
+
27
+ ARM_LIB_STACK 0x20000000+0x00004000 EMPTY -Stack_Size { ; Stack region growing down
28
+ }
14
29
}
15
30
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ SECTIONS
128
128
__end__ = .;
129
129
end = __end__;
130
130
*(.heap*)
131
+ . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size;
131
132
__HeapLimit = .;
132
133
} > RAM
133
134
@@ -137,13 +138,14 @@ SECTIONS
137
138
.stack_dummy (COPY) :
138
139
{
139
140
*(.stack*)
141
+ . += Stack_Size;
140
142
} > RAM
141
143
142
144
143
145
/* Set stack top to end of RAM, and stack limit move down by
144
146
* size of stack_dummy section */
145
147
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
148
+ __StackLimit = __StackTop - Stack_Size ;
147
149
PROVIDE (__stack = __StackTop);
148
150
149
151
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change 50
50
#ifdef __STACK_SIZE
51
51
.equ Stack_Size, __STACK_SIZE
52
52
#else
53
- .equ Stack_Size, 0x200
53
+ #if defined(MBED_CONF_RTOS_PRESENT)
54
+ .equ Stack_Size, 0x400
55
+ #else
56
+ .equ Stack_Size, 0x1000
57
+ #endif
54
58
#endif
55
59
.globl __StackTop
56
60
.globl __StackLimit
57
61
__StackLimit:
58
- .space Stack_Size
62
+ .globl Stack_Size
59
63
.size __StackLimit, . - __StackLimit
60
64
__StackTop:
61
65
.size __StackTop, . - __StackTop
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+ #include "mbed_config.h"
1
3
; *************************************************************
2
4
; *** Scatter-Loading Description File generated by uVision ***
3
5
; *************************************************************
4
6
7
+ #if (defined(__stack_size__))
8
+ #define Stack_Size __stack_size__
9
+ #else
10
+ #if (defined(MBED_CONF_RTOS_PRESENT))
11
+ #define Stack_Size 0x0400
12
+ #else
13
+ #define Stack_Size 0x1000
14
+ #endif
15
+ #endif
16
+
5
17
LR_IROM1 0x00000000 0x00020000 { ; load region size_region
6
18
ER_IROM1 0x00000000 0x00020000 { ; load address = execution address
7
19
*.o (RESET, +First)
@@ -11,5 +23,8 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
11
23
RW_IRAM1 0x20000000 0x00004000 { ; RW data
12
24
.ANY (+RW +ZI)
13
25
}
26
+
27
+ ARM_LIB_STACK 0x20000000+0x00004000 EMPTY -Stack_Size { ; Stack region growing down
28
+ }
14
29
}
15
30
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ SECTIONS
128
128
__end__ = .;
129
129
end = __end__;
130
130
*(.heap*)
131
+ . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size;
131
132
__HeapLimit = .;
132
133
} > RAM
133
134
@@ -137,13 +138,14 @@ SECTIONS
137
138
.stack_dummy (COPY) :
138
139
{
139
140
*(.stack*)
141
+ . += Stack_Size;
140
142
} > RAM
141
143
142
144
143
145
/* Set stack top to end of RAM, and stack limit move down by
144
146
* size of stack_dummy section */
145
147
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
148
+ __StackLimit = __StackTop - Stack_Size ;
147
149
PROVIDE (__stack = __StackTop);
148
150
149
151
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change 50
50
#ifdef __STACK_SIZE
51
51
.equ Stack_Size, __STACK_SIZE
52
52
#else
53
- .equ Stack_Size, 0x200
53
+ #if defined(MBED_CONF_RTOS_PRESENT)
54
+ .equ Stack_Size, 0x400
55
+ #else
56
+ .equ Stack_Size, 0x1000
57
+ #endif
54
58
#endif
55
59
.globl __StackTop
56
60
.globl __StackLimit
57
61
__StackLimit:
58
- .space Stack_Size
62
+ .globl Stack_Size
59
63
.size __StackLimit, . - __StackLimit
60
64
__StackTop:
61
65
.size __StackTop, . - __StackTop
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+ #include "mbed_config.h"
3
+
1
4
; *************************************************************
2
5
; *** Scatter-Loading Description File generated by uVision ***
3
6
; *************************************************************
4
7
8
+ #if (defined(__stack_size__))
9
+ #define Stack_Size __stack_size__
10
+ #else
11
+ #if (defined(MBED_CONF_RTOS_PRESENT))
12
+ #define Stack_Size 0x0400
13
+ #else
14
+ #define Stack_Size 0x1000
15
+ #endif
16
+ #endif
17
+
5
18
LR_IROM1 0x00000000 0x00020000 { ; load region size_region
6
19
ER_IROM1 0x00000000 0x00020000 { ; load address = execution address
7
20
*.o (RESET, +First)
@@ -11,5 +24,8 @@ LR_IROM1 0x00000000 0x00020000 { ; load region size_region
11
24
RW_IRAM1 0x20000000 0x00004000 { ; RW data
12
25
.ANY (+RW +ZI)
13
26
}
27
+
28
+ ARM_LIB_STACK 0x20000000+0x00004000 EMPTY -Stack_Size { ; Stack region growing down
29
+ }
14
30
}
15
31
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ SECTIONS
129
129
end = __end__;
130
130
*(.heap*)
131
131
__HeapLimit = .;
132
+ . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size;
132
133
} > RAM
133
134
134
135
/* .stack_dummy section doesn't contains any symbols. It is only
@@ -137,13 +138,14 @@ SECTIONS
137
138
.stack_dummy (COPY) :
138
139
{
139
140
*(.stack*)
141
+ . += Stack_Size;
140
142
} > RAM
141
143
142
144
143
145
/* Set stack top to end of RAM, and stack limit move down by
144
146
* size of stack_dummy section */
145
147
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
146
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
148
+ __StackLimit = __StackTop - Stack_Size ;
147
149
PROVIDE (__stack = __StackTop);
148
150
149
151
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change 50
50
#ifdef __STACK_SIZE
51
51
.equ Stack_Size, __STACK_SIZE
52
52
#else
53
- .equ Stack_Size, 0x200
53
+ #if defined(MBED_CONF_RTOS_PRESENT)
54
+ .equ Stack_Size, 0x400
55
+ #else
56
+ .equ Stack_Size, 0x1000
57
+ #endif
54
58
#endif
55
59
.globl __StackTop
56
60
.globl __StackLimit
57
61
__StackLimit:
58
- .space Stack_Size
62
+ .globl Stack_Size
59
63
.size __StackLimit, . - __StackLimit
60
64
__StackTop:
61
65
.size __StackTop, . - __StackTop
Original file line number Diff line number Diff line change 17
17
#ifndef MBED_MBED_RTX_H
18
18
#define MBED_MBED_RTX_H
19
19
20
- #if defined(TARGET_WIZWIKI_W7500 )
21
-
22
- #ifndef INITIAL_SP
23
- #define INITIAL_SP (0x20004000UL)
24
- #endif
25
-
26
- #elif defined(TARGET_WIZWIKI_W7500P )
27
-
28
- #ifndef INITIAL_SP
29
- #define INITIAL_SP (0x20004000UL)
30
- #endif
31
-
32
-
33
- #elif defined(TARGET_WIZWIKI_W7500ECO )
34
-
35
- #ifndef INITIAL_SP
36
- #define INITIAL_SP (0x20004000UL)
37
- #endif
38
-
39
- #endif //
40
-
41
20
#endif // MBED_MBED_RTX_H
You can’t perform that action at this time.
0 commit comments