File tree Expand file tree Collapse file tree 24 files changed +122
-44
lines changed
TARGET_MCU_NRF51822/device
TARGET_MCU_NRF51_16K_S110
TARGET_MCU_NRF51_16K_S130
TARGET_MCU_NRF51_16K_S110
TARGET_MCU_NRF51_16K_S130
TARGET_NRF51/TARGET_MCU_NRF51822_UNIFIED/device
TARGET_MCU_NRF51_16K_S110
TARGET_MCU_NRF51_16K_S130
TARGET_MCU_NRF51_16K_S110
TARGET_MCU_NRF51_16K_S130
TARGET_MCU_NRF52832/device
TARGET_MCU_NRF52840/device Expand file tree Collapse file tree 24 files changed +122
-44
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;WITHOUT SOFTDEVICE:
2
4
;LR_IROM1 0x00000000 0x00040000 {
3
5
; ER_IROM1 0x00000000 0x00040000 {
12
14
;
13
15
;WITH SOFTDEVICE:
14
16
17
+ #define Stack_Size MBED_BOOT_STACK_SIZE
18
+
15
19
LR_IROM1 0x1C000 0x0024000 {
16
20
ER_IROM1 0x1C000 0x0024000 {
17
21
*.o (RESET, +First)
@@ -21,4 +25,6 @@ LR_IROM1 0x1C000 0x0024000 {
21
25
RW_IRAM1 0x20002800 0x00005800 {
22
26
.ANY (+RW +ZI)
23
27
}
28
+ ARM_LIB_STACK 0x20002800+0x00005800 EMPTY -Stack_Size { ; Stack region growing down
29
+ }
24
30
}
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;WITHOUT SOFTDEVICE:
2
4
;LR_IROM1 0x00000000 0x00040000 {
3
5
; ER_IROM1 0x00000000 0x00040000 {
12
14
;
13
15
;WITH SOFTDEVICE:
14
16
17
+ #define Stack_Size MBED_BOOT_STACK_SIZE
18
+
15
19
LR_IROM1 0x18000 0x0028000 {
16
20
ER_IROM1 0x18000 0x0028000 {
17
21
*.o (RESET, +First)
@@ -21,4 +25,6 @@ LR_IROM1 0x18000 0x0028000 {
21
25
RW_IRAM1 0x20002000 0x00002000 {
22
26
.ANY (+RW +ZI)
23
27
}
28
+ ARM_LIB_STACK 0x20002000+0x00002000 EMPTY -Stack_Size { ; Stack region growing down
29
+ }
24
30
}
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;WITHOUT SOFTDEVICE:
2
4
;LR_IROM1 0x00000000 0x00040000 {
3
5
; ER_IROM1 0x00000000 0x00040000 {
12
14
;
13
15
;WITH SOFTDEVICE:
14
16
17
+ #define Stack_Size MBED_BOOT_STACK_SIZE
18
+
15
19
LR_IROM1 0x1C000 0x0024000 {
16
20
ER_IROM1 0x1C000 0x0024000 {
17
21
*.o (RESET, +First)
@@ -21,4 +25,6 @@ LR_IROM1 0x1C000 0x0024000 {
21
25
RW_IRAM1 0x20002800 0x00001800 {
22
26
.ANY (+RW +ZI)
23
27
}
28
+ ARM_LIB_STACK 0x20002800+0x00001800 EMPTY -Stack_Size { ; Stack region growing down
29
+ }
24
30
}
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x800
5
+ #endif
6
+
3
7
MEMORY
4
8
{
5
9
FLASH (rx) : ORIGIN = 0x0001C000, LENGTH = 0x24000
@@ -130,7 +134,7 @@ SECTIONS
130
134
end = __end__;
131
135
__HeapBase = .;
132
136
*(.heap*)
133
- . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size ;
137
+ . = ORIGIN (RAM) + LENGTH (RAM) - MBED_BOOT_STACK_SIZE ;
134
138
__HeapLimit = .;
135
139
} > RAM
136
140
@@ -145,7 +149,7 @@ SECTIONS
145
149
/* Set stack top to end of RAM, and stack limit move down by
146
150
* size of stack_dummy section */
147
151
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
148
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
152
+ __StackLimit = __StackTop - MBED_BOOT_STACK_SIZE ;
149
153
PROVIDE (__stack = __StackTop);
150
154
151
155
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x800
5
+ #endif
6
+
3
7
MEMORY
4
8
{
5
9
FLASH (rx) : ORIGIN = 0x00018000, LENGTH = 0x28000
@@ -130,7 +134,7 @@ SECTIONS
130
134
end = __end__;
131
135
__HeapBase = .;
132
136
*(.heap*)
133
- . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size ;
137
+ . = ORIGIN (RAM) + LENGTH (RAM) - MBED_BOOT_STACK_SIZE ;
134
138
__HeapLimit = .;
135
139
} > RAM
136
140
@@ -145,7 +149,7 @@ SECTIONS
145
149
/* Set stack top to end of RAM, and stack limit move down by
146
150
* size of stack_dummy section */
147
151
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
148
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
152
+ __StackLimit = __StackTop - MBED_BOOT_STACK_SIZE ;
149
153
PROVIDE (__stack = __StackTop);
150
154
151
155
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change 1
1
/* Linker script to configure memory regions. */
2
2
3
+ #if !defined(MBED_BOOT_STACK_SIZE)
4
+ #define MBED_BOOT_STACK_SIZE 0x800
5
+ #endif
6
+
3
7
MEMORY
4
8
{
5
9
FLASH (rx) : ORIGIN = 0x0001C000, LENGTH = 0x24000
@@ -130,7 +134,7 @@ SECTIONS
130
134
end = __end__;
131
135
__HeapBase = .;
132
136
*(.heap*)
133
- . = ORIGIN (RAM) + LENGTH (RAM) - Stack_Size ;
137
+ . = ORIGIN (RAM) + LENGTH (RAM) - MBED_BOOT_STACK_SIZE ;
134
138
__HeapLimit = .;
135
139
} > RAM
136
140
@@ -145,7 +149,7 @@ SECTIONS
145
149
/* Set stack top to end of RAM, and stack limit move down by
146
150
* size of stack_dummy section */
147
151
__StackTop = ORIGIN (RAM) + LENGTH (RAM);
148
- __StackLimit = __StackTop - SIZEOF (.stack_dummy) ;
152
+ __StackLimit = __StackTop - MBED_BOOT_STACK_SIZE ;
149
153
PROVIDE (__stack = __StackTop);
150
154
151
155
/* Check if data + heap + stack exceeds RAM limit */
Original file line number Diff line number Diff line change @@ -38,16 +38,9 @@ expected to be copied into the application project folder prior to its use!
38
38
39
39
.section .stack
40
40
.align 3
41
- #ifdef __STACK_SIZE
42
- .equ Stack_Size, __STACK_SIZE
43
- #else
44
- .equ Stack_Size, 2048
45
- #endif
46
- .globl Stack_Size
47
41
.globl __StackTop
48
42
.globl __StackLimit
49
43
__StackLimit:
50
- .space Stack_Size
51
44
.size __StackLimit, . - __StackLimit
52
45
__StackTop:
53
46
.size __StackTop, . - __StackTop
Original file line number Diff line number Diff line change 3
3
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4
4
/*-Specials-*/
5
5
define symbol __ICFEDIT_intvec_start__ = 0x00016000;
6
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
7
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
8
+ }
6
9
/*-Memory Regions-*/
7
10
define symbol __ICFEDIT_region_ROM_start__ = 0x000160c0;
8
11
define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
9
12
define symbol __ICFEDIT_region_RAM_start__ = 0x20002000;
10
13
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
11
14
/*-Sizes-*/
12
- define symbol __ICFEDIT_size_cstack__ = 0x400 ;
15
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE ;
13
16
define symbol __ICFEDIT_size_heap__ = 0x900;
14
17
/**** End of ICF editor section. ###ICF###*/
15
18
Original file line number Diff line number Diff line change 3
3
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4
4
/*-Specials-*/
5
5
define symbol __ICFEDIT_intvec_start__ = 0x00016000;
6
+ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
7
+ define symbol MBED_BOOT_STACK_SIZE = 0x400;
8
+ }
6
9
/*-Memory Regions-*/
7
10
define symbol __ICFEDIT_region_ROM_start__ = 0x000160c0;
8
11
define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
9
12
define symbol __ICFEDIT_region_RAM_start__ = 0x20002000;
10
13
define symbol __ICFEDIT_region_RAM_end__ = 0x20007FFF;
11
14
/*-Sizes-*/
12
- /*Heap 1/4 of ram and stack 1/8*/
13
- define symbol __ICFEDIT_size_cstack__ = 0xc00;
15
+ define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
14
16
define symbol __ICFEDIT_size_heap__ = 0x1800;
15
17
/**** End of ICF editor section. ###ICF###*/
16
18
Original file line number Diff line number Diff line change
1
+ #! armcc -E
2
+
1
3
;WITHOUT SOFTDEVICE:
2
4
;LR_IROM1 0x00000000 0x00040000 {
3
5
; ER_IROM1 0x00000000 0x00040000 {
12
14
;
13
15
;WITH SOFTDEVICE:
14
16
17
+ #define Stack_Size MBED_BOOT_STACK_SIZE
18
+
15
19
LR_IROM1 0x1B000 0x0025000 {
16
20
ER_IROM1 0x1B000 0x0025000 {
17
21
*.o (RESET, +First)
@@ -24,4 +28,6 @@ LR_IROM1 0x1B000 0x0025000 {
24
28
RW_IRAM1 0x20002FB8 0x00005048 {
25
29
.ANY (+RW +ZI)
26
30
}
31
+ ARM_LIB_STACK 0x20002FB8+0x00005048 EMPTY -Stack_Size { ; Stack region growing down
32
+ }
27
33
}
You can’t perform that action at this time.
0 commit comments