Skip to content

Commit 4ec2105

Browse files
authored
Update ldscript.ld - for custom devboard - Databoard
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
1 parent 2095f53 commit 4ec2105

File tree

1 file changed

+44
-33
lines changed

1 file changed

+44
-33
lines changed

variants/STM32F1xx/F103C8T_F103CB(T-U)/ldscript.ld

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,45 @@
1-
/**
2-
******************************************************************************
3-
* @file LinkerScript.ld
4-
* @author Auto-generated by STM32CubeIDE
5-
* @brief Linker script for STM32F103C8Tx Device from STM32F1 series
6-
* 64Kbytes FLASH
7-
* 20Kbytes 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+
** @brief : Linker script for STM32F103C8Tx Device from STM32F1 series
9+
** 64KBytes FLASH
10+
** 20KBytes RAM
11+
**
12+
** Set heap size, stack size and stack location according
13+
** to application requirements.
14+
**
15+
** Set memory bank area and size if external memory is used
16+
**
17+
** Target : STMicroelectronics STM32
18+
**
19+
** Distribution: The file is distributed as is, without any warranty
20+
** of any kind.
21+
**
22+
******************************************************************************
23+
** @attention
24+
**
25+
** Copyright (c) 2025 STMicroelectronics.
26+
** All rights reserved.
27+
**
28+
** This software is licensed under terms that can be found in the LICENSE file
29+
** in the root directory of this software component.
30+
** If no LICENSE file comes with this software, it is provided AS-IS.
31+
**
32+
******************************************************************************
33+
*/
2634

2735
/* Entry Point */
2836
ENTRY(Reset_Handler)
2937

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

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

3644
/* Memories definition */
3745
MEMORY
@@ -43,6 +51,7 @@ MEMORY
4351
/* Sections */
4452
SECTIONS
4553
{
54+
4655
/* The startup code into "FLASH" Rom type memory */
4756
.isr_vector :
4857
{
@@ -77,21 +86,23 @@ SECTIONS
7786
. = ALIGN(4);
7887
} >FLASH
7988

80-
.ARM.extab (READONLY) : {
89+
.ARM.extab (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
90+
{
8191
. = ALIGN(4);
8292
*(.ARM.extab* .gnu.linkonce.armextab.*)
8393
. = ALIGN(4);
8494
} >FLASH
8595

86-
.ARM (READONLY) : {
96+
.ARM (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
97+
{
8798
. = ALIGN(4);
8899
__exidx_start = .;
89100
*(.ARM.exidx*)
90101
__exidx_end = .;
91102
. = ALIGN(4);
92103
} >FLASH
93104

94-
.preinit_array (READONLY) :
105+
.preinit_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
95106
{
96107
. = ALIGN(4);
97108
PROVIDE_HIDDEN (__preinit_array_start = .);
@@ -100,7 +111,7 @@ SECTIONS
100111
. = ALIGN(4);
101112
} >FLASH
102113

103-
.init_array (READONLY) :
114+
.init_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
104115
{
105116
. = ALIGN(4);
106117
PROVIDE_HIDDEN (__init_array_start = .);
@@ -110,7 +121,7 @@ SECTIONS
110121
. = ALIGN(4);
111122
} >FLASH
112123

113-
.fini_array (READONLY) :
124+
.fini_array (READONLY) : /* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. */
114125
{
115126
. = ALIGN(4);
116127
PROVIDE_HIDDEN (__fini_array_start = .);

0 commit comments

Comments
 (0)