aboutsummaryrefslogtreecommitdiff
path: root/libraries/mbed
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 /libraries/mbed
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.
Diffstat (limited to 'libraries/mbed')
-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 :
{