bootloader: Fix address of SRAM in the target.
[gps-watch.git] / src / bootloader / bootloader.ld
index b465cecad78cad7d90a9928f724cb737869386b2..8083a7e40a6c1014c24700ce5d280b8b9ddbae21 100644 (file)
@@ -8,7 +8,9 @@
 MEMORY
 {
   FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000   /* 256k */
-  RAM (rwx)  : ORIGIN = 0x20000000, LENGTH = 0x08000   /*  32k */
+
+  RAM (rwx)
+    : ORIGIN = 0x1fffe000, LENGTH = 0x08000
 }
 
 /* Library configurations */
@@ -39,8 +41,6 @@ GROUP(libgcc.a libc.a libm.a libnosys.a)
  *   __StackLimit
  *   __StackTop
  *   __stack
- *   __Vectors_End
- *   __Vectors_Size
  */
 ENTRY(Reset_Handler)
 
@@ -49,8 +49,6 @@ SECTIONS
        .text :
        {
                KEEP(*(.vectors))
-               __Vectors_End = .;
-               __Vectors_Size = __Vectors_End - __Vectors;
                __end__ = .;
 
                *(.text*)