File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
targets/TARGET_ublox/TARGET_HI2110/device Expand file tree Collapse file tree 3 files changed +24
-3
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
LR_IROM1 0x00000000 0x20000 {
2
10
ER_IROM1 0x00000000 0x20000 {
3
11
*.o (RESET, +First)
@@ -6,10 +14,12 @@ LR_IROM1 0x00000000 0x20000 {
6
14
}
7
15
RW_IRAM_VTABLE 0x01000000 EMPTY 128 {
8
16
}
9
- RW_IRAM1 +0 (0x5000 - 256) {
17
+ RW_IRAM1 +0 (0x5000 - 256 - Stack_Size ) {
10
18
.ANY (+RW +ZI)
11
19
}
12
20
RW_IPCRAM +0 256 {
13
21
ipc.o (+RW)
14
22
}
23
+ ARM_LIB_STACK (0x01000000+0x5000) EMPTY -Stack_Size { ; stack
24
+ }
15
25
}
Original file line number Diff line number Diff line change 4
4
OUTPUT_FORMAT ("elf32-littlearm")
5
5
OUTPUT_ARCH (arm )
6
6
ENTRY (Reset_Handler )
7
+
8
+ #if !defined(MBED_BOOT_STACK_SIZE)
9
+ #define MBED_BOOT_STACK_SIZE 0x400
10
+ #endif
11
+
12
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
13
+
7
14
MEMORY
8
15
{
9
16
FLASH_VECTORS : ORIGIN = 0, LENGTH = 192
@@ -151,7 +158,7 @@ SECTIONS
151
158
/* Set stack top to end of RAM, and stack limit move down by
152
159
* size of stack_dummy section */
153
160
__StackTop = ORIGIN (RAM) + LENGTH (RAM); /* Remember that LENGTH (RAM) is already reduced by the IPC block */
154
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
161
+ __StackLimit = __StackTop - STACK_SIZE ;
155
162
PROVIDE (__stack = __StackTop);
156
163
157
164
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ define symbol __size_flash_vtable__ = 192;
8
8
define symbol __size_ram_vtable__ = 128; /* Reserve space for dynamic vectors mapped to RAM (see cmsis_nvic.c) */
9
9
define symbol __size_ipc__ = 256;
10
10
11
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
12
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
13
+ }
14
+
11
15
if (isdefinedsymbol(__stack_size__)) {
12
16
define symbol __size_cstack__ = __stack_size__;
13
17
} else {
14
- define symbol __size_cstack__ = 1024 ;
18
+ define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE ;
15
19
}
16
20
17
21
if (isdefinedsymbol(__heap_size__)) {
You can’t perform that action at this time.
0 commit comments