Skip to content

Commit 288fd9c

Browse files
committed
update ldscript.ld
1 parent c01e51d commit 288fd9c

File tree

1 file changed

+57
-28
lines changed

1 file changed

+57
-28
lines changed

variants/STM32F3xx/F334R8T/ldscript.ld

+57-28
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,51 @@
1-
/**
2-
******************************************************************************
3-
* @file LinkerScript.ld
4-
* @author Auto-generated by STM32CubeIDE
5-
* @brief Linker script for STM32F334R8Tx Device from STM32F3 series
6-
* 64Kbytes FLASH
7-
* 16Kbytes RAM
8-
*
9-
* Set heap size, stack size and stack location according
10-
* to application requirements.
11-
*
12-
* Set memory bank area and size if external memory is used
13-
******************************************************************************
14-
* @attention
15-
*
16-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
17-
* All rights reserved.</center></h2>
18-
*
19-
* This software component is licensed by ST under BSD 3-Clause license,
20-
* the "License"; You may not use this file except in compliance with the
21-
* License. You may obtain a copy of the License at:
22-
* opensource.org/licenses/BSD-3-Clause
23-
*
24-
******************************************************************************
25-
*/
1+
/*
2+
******************************************************************************
3+
**
4+
** @file : LinkerScript.ld
5+
**
6+
** @author : Auto-generated by STM32CubeIDE
7+
**
8+
** Abstract : Linker script for NUCLEO-F334R8 Board embedding STM32F334R8Tx Device from stm32f3 series
9+
** 64Kbytes FLASH
10+
** 4Kbytes CCMRAM
11+
** 12Kbytes RAM
12+
**
13+
** Set heap size, stack size and stack location according
14+
** to application requirements.
15+
**
16+
** Set memory bank area and size if external memory is used
17+
**
18+
** Target : STMicroelectronics STM32
19+
**
20+
** Distribution: The file is distributed as is, without any warranty
21+
** of any kind.
22+
**
23+
******************************************************************************
24+
** @attention
25+
**
26+
** Copyright (c) 2022 STMicroelectronics.
27+
** All rights reserved.
28+
**
29+
** This software is licensed under terms that can be found in the LICENSE file
30+
** in the root directory of this software component.
31+
** If no LICENSE file comes with this software, it is provided AS-IS.
32+
**
33+
******************************************************************************
34+
*/
2635

2736
/* Entry Point */
2837
ENTRY(Reset_Handler)
2938

3039
/* Highest address of the user mode stack */
31-
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
40+
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
3241

33-
_Min_Heap_Size = 0x200; /* required amount of heap */
34-
_Min_Stack_Size = 0x400; /* required amount of stack */
42+
_Min_Heap_Size = 0x200; /* required amount of heap */
43+
_Min_Stack_Size = 0x400; /* required amount of stack */
3544

3645
/* Memories definition */
3746
MEMORY
3847
{
48+
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 4K
3949
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
4050
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
4151
}
@@ -138,6 +148,25 @@ SECTIONS
138148

139149
} >RAM AT> FLASH
140150

151+
_siccmram = LOADADDR(.ccmram);
152+
153+
/* CCM-RAM section
154+
*
155+
* IMPORTANT NOTE!
156+
* If initialized variables will be placed in this section,
157+
* the startup code needs to be modified to copy the init-values.
158+
*/
159+
.ccmram :
160+
{
161+
. = ALIGN(4);
162+
_sccmram = .; /* create a global symbol at ccmram start */
163+
*(.ccmram)
164+
*(.ccmram*)
165+
166+
. = ALIGN(4);
167+
_eccmram = .; /* create a global symbol at ccmram end */
168+
} >CCMRAM AT> FLASH
169+
141170
/* Uninitialized data section into "RAM" Ram type memory */
142171
. = ALIGN(4);
143172
.bss :

0 commit comments

Comments
 (0)