ads1115 only

Fork of mbed by mbed official

Revision:
108:34e6b704fe68
Parent:
107:4f6c30876dfa
Child:
122:f9eeca106725
diff -r 4f6c30876dfa -r 34e6b704fe68 TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld
--- a/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld	Wed Sep 16 15:32:31 2015 +0100
+++ b/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld	Fri Oct 02 07:35:07 2015 +0200
@@ -2,7 +2,8 @@
 MEMORY
 { 
   FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
-  RAM (rwx)  : ORIGIN = 0x20000188, LENGTH = 128K - 0x188
+  SRAM2 (rwx)  : ORIGIN = 0x10000188, LENGTH = 32k - 0x188
+  SRAM1 (rwx)  : ORIGIN = 0x20000000, LENGTH = 96k
 }
 
 /* Linker script to place sections and symbol values. Should be used together
@@ -111,7 +112,7 @@
         __data_end__ = .;
         _edata = .;
 
-    } > RAM
+    } > SRAM2
 
     .bss :
     {
@@ -123,7 +124,7 @@
         . = ALIGN(4);
         __bss_end__ = .;
         _ebss = .;
-    } > RAM
+    } > SRAM2
 
     .heap (COPY):
     {
@@ -131,7 +132,7 @@
         end = __end__;
         *(.heap*)
         __HeapLimit = .;
-    } > RAM
+    } > SRAM2
 
     /* .stack_dummy section doesn't contains any symbols. It is only
      * used for linker to calculate size of stack sections, and assign
@@ -139,11 +140,11 @@
     .stack_dummy (COPY):
     {
         *(.stack*)
-    } > RAM
+    } > SRAM2
 
     /* Set stack top to end of RAM, and stack limit move down by
      * size of stack_dummy section */
-    __StackTop = ORIGIN(RAM) + LENGTH(RAM);
+    __StackTop = ORIGIN(SRAM2) + LENGTH(SRAM2);
     _estack = __StackTop;
     __StackLimit = __StackTop - SIZEOF(.stack_dummy);
     PROVIDE(__stack = __StackTop);