aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-13 15:05:50 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-13 15:05:50 -0400
commit6d51768a00ffcc013134056098e1480420da9eb7 (patch)
treeb474073f4fc6c2d99703ffd3f9527cb63311efa5
parentdb67f40e5002c78b3efd155d2ebd3b1b7b5d95e5 (diff)
SDRAM is for uninitialized data only.
We don't plan to put initialized data in SDRAM, and we don't have startup code to copy initialized data, so don't even bother. Further, the linker will reserve space in FLASH, even for uninitialized data, so just don't.
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld10
1 files changed, 2 insertions, 8 deletions
diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld
index 2f80bce..cc6dc4d 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld
@@ -138,9 +138,6 @@ SECTIONS
_eccmram = .;
} >CCMRAM AT> FLASH
- /* If initialized variables are placed in this section,
- * the startup code needs to be modified to copy the init-values.
- */
.sdram1 :
{
. = ALIGN(4);
@@ -150,11 +147,8 @@ SECTIONS
. = ALIGN(4);
_esdram1 = .;
- } >SDRAM1 AT> FLASH
+ } >SDRAM1
- /* If initialized variables are placed in this section,
- * the startup code needs to be modified to copy the init-values.
- */
.sdram2 :
{
. = ALIGN(4);
@@ -164,7 +158,7 @@ SECTIONS
. = ALIGN(4);
_esdram2 = .;
- } >SDRAM2 AT> FLASH
+ } >SDRAM2
.bss :
{
d='n186' href='#n186'>186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270