summaryrefslogtreecommitdiff
path: root/bsp/lpc2148
diff options
context:
space:
mode:
authordzzxzz <[email protected]>2011-12-31 08:18:46 +0000
committerdzzxzz <[email protected]>2011-12-31 08:18:46 +0000
commita54b523ec0d45f7cd46d2b99ce2faaa417b48842 (patch)
treeb79c14a25c2bb5b121211938a8211264ebd0a06b /bsp/lpc2148
parentbcf0bd361bea49c7a79f5b26ca8022c0acfaad87 (diff)
fixed scons+keil compiling error in lpc2148 and lpc178x branches
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1897 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc2148')
-rw-r--r--bsp/lpc2148/lpc2148_rom.sct15
-rw-r--r--bsp/lpc2148/rtconfig.py2
2 files changed, 16 insertions, 1 deletions
diff --git a/bsp/lpc2148/lpc2148_rom.sct b/bsp/lpc2148/lpc2148_rom.sct
new file mode 100644
index 0000000000..1ba2f83e11
--- /dev/null
+++ b/bsp/lpc2148/lpc2148_rom.sct
@@ -0,0 +1,15 @@
+; *************************************************************
+; *** Scatter-Loading Description File generated by uVision ***
+; *************************************************************
+
+LR_IROM1 0x00000000 0x00080000 { ; load region size_region
+ ER_IROM1 0x00000000 0x00080000 { ; load address = execution address
+ *.o (RESET, +First)
+ *(InRoot$$Sections)
+ .ANY (+RO)
+ }
+ RW_IRAM1 0x40000000 0x00008000 { ; RW data
+ .ANY (+RW +ZI)
+ }
+}
+
diff --git a/bsp/lpc2148/rtconfig.py b/bsp/lpc2148/rtconfig.py
index 7beb4ed938..8e90bd334f 100644
--- a/bsp/lpc2148/rtconfig.py
+++ b/bsp/lpc2148/rtconfig.py
@@ -50,7 +50,7 @@ elif PLATFORM == 'armcc':
LINK = 'armlink'
TARGET_EXT = 'axf'
- DEVICE = ' --device DARMSTM'
+ DEVICE = ' --device DARMP'
CFLAGS = DEVICE + ' --apcs=interwork'
AFLAGS = DEVICE
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-lpc2148.map --scatter lpc2148_rom.sct'