[Cryptech-Commits] [sw/stm32] 03/06: SDRAM is for uninitialized data only.

git at cryptech.is git at cryptech.is
Mon Jun 13 20:55:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

commit 6d51768a00ffcc013134056098e1480420da9eb7
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Jun 13 15:05:50 2016 -0400

    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(-)

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 :
     {



More information about the Commits mailing list