Skip to content

Commit 1ce13cb

Browse files
committed
STM32F303xC: add RAM_CCM in GCC linker script
1 parent 495506d commit 1ce13cb

File tree

1 file changed

+13
-4
lines changed
  • targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TOOLCHAIN_GCC_ARM

1 file changed

+13
-4
lines changed

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TOOLCHAIN_GCC_ARM/STM32F303XC.ld

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737

3838
MEMORY
3939
{
40-
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
41-
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
40+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
41+
RAM (rwx) : ORIGIN = MBED_RAM_START + VECTORS_SIZE, LENGTH = MBED_RAM_SIZE - VECTORS_SIZE
42+
RAM_CCM (rwx) : ORIGIN = MBED_RAM1_START, LENGTH = MBED_RAM1_SIZE
4243
}
4344

4445
/* Linker script to place sections and symbol values. Should be used together
@@ -113,7 +114,7 @@ SECTIONS
113114

114115
__etext = .;
115116
_sidata = .;
116-
117+
117118
.data : AT (__etext)
118119
{
119120
__data_start__ = .;
@@ -161,7 +162,7 @@ SECTIONS
161162
. = ALIGN(32);
162163
__uninitialized_end = .;
163164
} > RAM
164-
165+
165166
.bss :
166167
{
167168
. = ALIGN(8);
@@ -183,6 +184,14 @@ SECTIONS
183184
__HeapLimit = .;
184185
} > RAM
185186

187+
.ram_ccm_section (NOLOAD):
188+
{
189+
__ram_ccm_start__ = .;
190+
*(.RAM_CCM_section)
191+
. = ORIGIN(RAM_CCM) + LENGTH(RAM_CCM);
192+
__ram_ccm_end__ = .;
193+
} >RAM_CCM
194+
186195
/* .stack_dummy section doesn't contains any symbols. It is only
187196
* used for linker to calculate size of stack sections, and assign
188197
* values to stack symbols later */

0 commit comments

Comments
 (0)