You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/device/TOOLCHAIN_GCC_ARM/STM32L476XX.ld
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@
6
6
#define MBED_APP_SIZE 1024k
7
7
#endif
8
8
9
+
STACK_SIZE = 0x400;
10
+
HEAP_SIZE = 0x7800;
11
+
9
12
/* Linker script to configure memory regions. */
10
13
MEMORY
11
14
{
@@ -86,6 +89,11 @@ SECTIONS
86
89
__etext = .;
87
90
_sidata = .;
88
91
92
+
.mesh_heap (COPY):
93
+
{
94
+
*(mesh_heap*)
95
+
} > SRAM2
96
+
89
97
.data : AT (__etext)
90
98
{
91
99
__data_start__ = .;
@@ -138,7 +146,7 @@ SECTIONS
138
146
{
139
147
__end__ = .;
140
148
end = __end__;
141
-
*(.heap*)
149
+
. += HEAP_SIZE;
142
150
__HeapLimit = .;
143
151
} > SRAM1
144
152
@@ -154,7 +162,7 @@ SECTIONS
154
162
* size of stack_dummy section */
155
163
__StackTop = ORIGIN(SRAM1) + LENGTH(SRAM1);
156
164
_estack = __StackTop;
157
-
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
165
+
__StackLimit = __StackTop - STACK_SIZE;
158
166
PROVIDE(__stack = __StackTop);
159
167
160
168
/* Check if data + heap + stack exceeds RAM limit */
0 commit comments