|
@@ -1,7 +1,6 @@
|
1
|
1
|
/*
|
2
|
2
|
*****************************************************************************
|
3
|
3
|
**
|
4
|
|
-
|
5
|
4
|
** File : LinkerScript.ld
|
6
|
5
|
**
|
7
|
6
|
** Abstract : Linker script for STM32F407VETx Device with
|
|
@@ -115,7 +114,7 @@ SECTIONS
|
115
|
114
|
_sidata = LOADADDR(.data);
|
116
|
115
|
|
117
|
116
|
/* Initialized data sections goes into RAM, load LMA copy after code */
|
118
|
|
- .data :
|
|
117
|
+ .data :
|
119
|
118
|
{
|
120
|
119
|
. = ALIGN(4);
|
121
|
120
|
_sdata = .; /* create a global symbol at data start */
|
|
@@ -128,24 +127,24 @@ SECTIONS
|
128
|
127
|
|
129
|
128
|
_siccmram = LOADADDR(.ccmram);
|
130
|
129
|
|
131
|
|
- /* CCM-RAM section
|
132
|
|
- *
|
133
|
|
- * IMPORTANT NOTE!
|
134
|
|
- * If initialized variables will be placed in this section,
|
135
|
|
- * the startup code needs to be modified to copy the init-values.
|
136
|
|
- */
|
|
130
|
+ /* CCM-RAM section
|
|
131
|
+ *
|
|
132
|
+ * IMPORTANT NOTE!
|
|
133
|
+ * If initialized variables will be placed in this section,
|
|
134
|
+ * the startup code needs to be modified to copy the init-values.
|
|
135
|
+ */
|
137
|
136
|
.ccmram :
|
138
|
137
|
{
|
139
|
138
|
. = ALIGN(4);
|
140
|
139
|
_sccmram = .; /* create a global symbol at ccmram start */
|
141
|
140
|
*(.ccmram)
|
142
|
141
|
*(.ccmram*)
|
143
|
|
-
|
|
142
|
+
|
144
|
143
|
. = ALIGN(4);
|
145
|
144
|
_eccmram = .; /* create a global symbol at ccmram end */
|
146
|
145
|
} >CCMRAM AT> FLASH
|
147
|
146
|
|
148
|
|
-
|
|
147
|
+
|
149
|
148
|
/* Uninitialized data section */
|
150
|
149
|
. = ALIGN(4);
|
151
|
150
|
.bss :
|
|
@@ -173,8 +172,6 @@ SECTIONS
|
173
|
172
|
. = ALIGN(8);
|
174
|
173
|
} >RAM
|
175
|
174
|
|
176
|
|
-
|
177
|
|
-
|
178
|
175
|
/* Remove information from the standard libraries */
|
179
|
176
|
/DISCARD/ :
|
180
|
177
|
{
|
|
@@ -185,5 +182,3 @@ SECTIONS
|
185
|
182
|
|
186
|
183
|
.ARM.attributes 0 : { *(.ARM.attributes) }
|
187
|
184
|
}
|
188
|
|
-
|
189
|
|
-
|