uart small ping pong receive, update of register functions
[cortex-from-scratch] / link.ld
diff --git a/link.ld b/link.ld
index 903f1f5..8301b2c 100644 (file)
--- a/link.ld
+++ b/link.ld
@@ -1,21 +1,28 @@
+/* */
 MEMORY
 {
-       FLASH (xr) : ORIGIN = 0x00000000, LENGTH = 512K
+       FLASH (xr) : ORIGIN = 0x08000000, LENGTH = 512K
        SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
-}
+} 
 
-ENTRY(_start)
+ENTRY(_start) 
 
 SECTIONS
 {
+       . = 0x0;
        .text : ALIGN(4)
        {
                /* (.vector_table */ 
                *(.text)
 
-       } > FLASH
-       .data : 
+       } 
+       . = 0x20000000;
+       .data :  
        {
                *(.data)
-       } > SRAM
+       } 
+       .bss : ALIGN(256)
+       {
+               *(.bss)
+       } 
 }