From 6d51768a00ffcc013134056098e1480420da9eb7 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 13 Jun 2016 15:05:50 -0400 Subject: 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. --- .../TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/STM32F429BI.ld | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libraries/mbed/targets/cmsis') 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 : { -- cgit v1.2.3