|
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>© 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 | +*/ |
26 | 35 |
|
27 | 36 | /* Entry Point */
|
28 | 37 | ENTRY(Reset_Handler)
|
29 | 38 |
|
30 | 39 | /* 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 */ |
32 | 41 |
|
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 */ |
35 | 44 |
|
36 | 45 | /* Memories definition */
|
37 | 46 | MEMORY
|
38 | 47 | {
|
| 48 | + CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 4K |
39 | 49 | RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
|
40 | 50 | FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
|
41 | 51 | }
|
@@ -138,6 +148,25 @@ SECTIONS
|
138 | 148 |
|
139 | 149 | } >RAM AT> FLASH
|
140 | 150 |
|
| 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 | + |
141 | 170 | /* Uninitialized data section into "RAM" Ram type memory */
|
142 | 171 | . = ALIGN(4);
|
143 | 172 | .bss :
|
|
0 commit comments