meh

Fork of mbed by mbed official

Revision:
74:a842253909c9
Parent:
72:4096f863f923
Child:
89:552587b429a1
--- a/TARGET_LPC4088/TOOLCHAIN_ARM_STD/LPC407X_8X.sct	Mon Dec 09 18:43:03 2013 +0200
+++ b/TARGET_LPC4088/TOOLCHAIN_ARM_STD/LPC407X_8X.sct	Fri Dec 13 14:18:40 2013 +0200
@@ -6,7 +6,9 @@
   ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
    *.o (RESET, +First)
    *(InRoot$$Sections)
-   .ANY (+RO)
+   *.o (+RO-CODE)                    ; forces all CODE to IFLASH
+   .ANY2 (+RO-DATA)                  ; prioritizes DATA in IFLASH before SPIFI
+   .ANY (+RO)                        ; remaining RO
   }
   RW_IRAM1 0x100000E8 0x0000FF18  {  ; RW data
    .ANY (+RW +ZI)
@@ -19,3 +21,10 @@
   }
 }
 
+LR_IROM2 0x28000000 0x01000000  {
+  ER_IROM2 0x28000000 0x01000000  {  ; load address = execution address
+    .ANY1 (+RO-DATA)                 ; all DATA not fitting in IFLASH
+    .ANY (SPIFI_MEM)                 ; DATA tagged as SPIFI_MEM
+  }
+}
+