update armcc device parameter in LPC2478.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1121 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
3f30b3cba5
commit
e262eed0e8
@ -16,10 +16,24 @@ SECTIONS
|
|||||||
__text_end = .;
|
__text_end = .;
|
||||||
|
|
||||||
__rodata_start = .;
|
__rodata_start = .;
|
||||||
.rodata : { *(.rodata) *(.rodata.*)}
|
.rodata :
|
||||||
|
{
|
||||||
|
*(.rodata)
|
||||||
|
*(.rodata.*)
|
||||||
|
/* section information for finsh shell */
|
||||||
|
. = ALIGN(4);
|
||||||
|
__fsymtab_start = .;
|
||||||
|
KEEP(*(FSymTab))
|
||||||
|
__fsymtab_end = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
__vsymtab_start = .;
|
||||||
|
KEEP(*(VSymTab))
|
||||||
|
__vsymtab_end = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
}
|
||||||
__rodata_end = .;
|
__rodata_end = .;
|
||||||
|
|
||||||
. = 0x40000000; /*Data in SRAM*/
|
. = 0x40000000; /*Data in SRAM*/
|
||||||
|
|
||||||
__data_start = .;
|
__data_start = .;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
15
bsp/lpc2478/lpc2478_rom.sct
Normal file
15
bsp/lpc2478/lpc2478_rom.sct
Normal file
@ -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 0x00010000 { ; RW data
|
||||||
|
.ANY (+RW +ZI)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,18 +1,22 @@
|
|||||||
# toolchains options
|
# toolchains options
|
||||||
ARCH='arm'
|
ARCH='arm'
|
||||||
CPU='lpc2478'
|
CPU='lpc24xx'
|
||||||
CROSS_TOOL='keil'
|
CROSS_TOOL='gcc'
|
||||||
|
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'D:/SourceryGCC/bin'
|
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'd:/Keil'
|
EXEC_PATH = 'E:/Keil'
|
||||||
|
|
||||||
BUILD = 'debug'
|
BUILD = 'debug'
|
||||||
|
|
||||||
if PLATFORM == 'gcc':
|
if PLATFORM == 'gcc':
|
||||||
|
print "========================="
|
||||||
|
print "Can not support GNU GCC!!"
|
||||||
|
print "========================="
|
||||||
|
exit (0)
|
||||||
|
|
||||||
# toolchains
|
# toolchains
|
||||||
PREFIX = 'arm-none-eabi-'
|
PREFIX = 'arm-none-eabi-'
|
||||||
CC = PREFIX + 'gcc'
|
CC = PREFIX + 'gcc'
|
||||||
@ -24,10 +28,10 @@ if PLATFORM == 'gcc':
|
|||||||
OBJDUMP = PREFIX + 'objdump'
|
OBJDUMP = PREFIX + 'objdump'
|
||||||
OBJCPY = PREFIX + 'objcopy'
|
OBJCPY = PREFIX + 'objcopy'
|
||||||
|
|
||||||
DEVICE = ' -mcpu=ARM7TDMI'
|
DEVICE = ' -mcpu=arm7tdmi'
|
||||||
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
CFLAGS = DEVICE
|
||||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
||||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc2478.map,-cref,-u,Reset_Handler -T lpc2478_rom.ld'
|
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc2478.map,-cref,-u,Reset_Handler -T lpc2478_rom.lds'
|
||||||
|
|
||||||
CPATH = ''
|
CPATH = ''
|
||||||
LPATH = ''
|
LPATH = ''
|
||||||
@ -48,7 +52,7 @@ elif PLATFORM == 'armcc':
|
|||||||
LINK = 'armlink'
|
LINK = 'armlink'
|
||||||
TARGET_EXT = 'axf'
|
TARGET_EXT = 'axf'
|
||||||
|
|
||||||
DEVICE = ' --device DARMSTM'
|
DEVICE = ' --device DARMP'
|
||||||
CFLAGS = DEVICE + ' --apcs=interwork'
|
CFLAGS = DEVICE + ' --apcs=interwork'
|
||||||
AFLAGS = DEVICE
|
AFLAGS = DEVICE
|
||||||
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-lpc2478.map --scatter lpc2478_rom.sct'
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-lpc2478.map --scatter lpc2478_rom.sct'
|
||||||
@ -74,7 +78,7 @@ elif PLATFORM == 'iar':
|
|||||||
LINK = 'ilinkarm'
|
LINK = 'ilinkarm'
|
||||||
TARGET_EXT = 'out'
|
TARGET_EXT = 'out'
|
||||||
|
|
||||||
DEVICE = ' --cpu DARMSTM --thumb'
|
DEVICE = ' --cpu DARMP'
|
||||||
|
|
||||||
CFLAGS = ''
|
CFLAGS = ''
|
||||||
AFLAGS = ''
|
AFLAGS = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user