From bad87a2c4b14d061ce1b0f7c8c688b3f3f14166d Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Fri, 26 Nov 2010 01:18:59 +0000 Subject: [PATCH] update lm3s sconscript and project file git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1119 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lm3s/SConscript | 19 +++ bsp/lm3s/SConstruct | 42 ++----- bsp/lm3s/project.Uv2 | 210 ++++++++++++++++++++++++++++++++++ bsp/lm3s/project_lwip_dfs.Opt | 133 --------------------- bsp/lm3s/project_lwip_dfs.Uv2 | 193 ------------------------------- bsp/lm3s/rtconfig.py | 61 ++-------- bsp/lm3s/template.Uv2 | 98 ++++++++++++++++ 7 files changed, 346 insertions(+), 410 deletions(-) create mode 100644 bsp/lm3s/SConscript create mode 100644 bsp/lm3s/project.Uv2 delete mode 100644 bsp/lm3s/project_lwip_dfs.Opt delete mode 100644 bsp/lm3s/project_lwip_dfs.Uv2 create mode 100644 bsp/lm3s/template.Uv2 diff --git a/bsp/lm3s/SConscript b/bsp/lm3s/SConscript new file mode 100644 index 000000000..c48296330 --- /dev/null +++ b/bsp/lm3s/SConscript @@ -0,0 +1,19 @@ +import rtconfig +Import('RTT_ROOT') +from building import * + +src_bsp = ['application.c', 'startup.c', 'board.c'] + +src_drv = [] +if GetDepend('RT_USING_DFS'): + src_drv += ['sdcard.c'] + +if GetDepend('RT_USING_LWIP'): + + src_drv += ['luminaryif.c'] + +src = File(src_bsp + src_drv) +CPPPATH = [RTT_ROOT + '/bsp/lm3s'] +group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') diff --git a/bsp/lm3s/SConstruct b/bsp/lm3s/SConstruct index 5cf0be646..6a12d4efa 100644 --- a/bsp/lm3s/SConstruct +++ b/bsp/lm3s/SConstruct @@ -1,11 +1,12 @@ import os +import sys import rtconfig RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') -target = 'rtthread-lm3s' +sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] +from building import * -# search path for C compiler -bsp_path = RTT_ROOT + '/bsp/lm3s' +TARGET = 'rtthread-lm3s.' + rtconfig.TARGET_EXT env = Environment(tools = ['mingw'], AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, @@ -13,39 +14,16 @@ env = Environment(tools = ['mingw'], AR = rtconfig.AR, ARFLAGS = '-rc', LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) -env.AppendUnique(CPPPATH = bsp_path) -Export('env') Export('RTT_ROOT') Export('rtconfig') -objs = SConscript(RTT_ROOT + '/libcpu/SConscript', variant_dir='build/libcpu', duplicate=0) -objs = objs + SConscript(RTT_ROOT + '/src/SConscript', variant_dir='build/src', duplicate=0) -objs = objs + SConscript(RTT_ROOT + '/bsp/lm3s/Libraries/SConscript', variant_dir='build/Libraries', duplicate=0) +# prepare building environment +objs = PrepareBuilding(env, RTT_ROOT) -if rtconfig.RT_USING_MINILIBC: - objs = objs + SConscript(RTT_ROOT + '/libc/minilibc/SConscript', variant_dir='build/minilibc', duplicate=0) +objs.append(SConscript('bsp/lm3s/Libraries/SConscript')) -if rtconfig.RT_USING_FINSH: - objs = objs + SConscript(RTT_ROOT + '/finsh/SConscript', variant_dir='build/finsh', duplicate=0) - -if rtconfig.RT_USING_DFS: - objs = objs + SConscript(RTT_ROOT + '/filesystem/dfs/SConscript', variant_dir='build/filesystem', duplicate=0) - -if rtconfig.RT_USING_LWIP: - objs = objs + SConscript(RTT_ROOT + '/net/lwip/SConscript', variant_dir='build/net/lwip', duplicate=0) - -src_bsp = ['application.c', 'startup.c', 'board.c'] - -src_drv = [] -if rtconfig.RT_USING_DFS: - src_drv += ['sdcard.c'] - -if rtconfig.RT_USING_LWIP: - src_drv += ['luminaryif.c'] - -objs = objs + env.Object(src_bsp + src_drv) - -TARGET = target + '.' + rtconfig.TARGET_EXT env.Program(TARGET, objs) -env.AddPostAction(TARGET, rtconfig.POST_ACTION) + +# end building +EndBuilding(TARGET) diff --git a/bsp/lm3s/project.Uv2 b/bsp/lm3s/project.Uv2 new file mode 100644 index 000000000..25d8eb4a7 --- /dev/null +++ b/bsp/lm3s/project.Uv2 @@ -0,0 +1,210 @@ +### uVision2 Project, (C) Keil Software +### Do not modify ! + +Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS' + +Group (Startup) +Group (Kernel) +Group (LM3S) +Group (Filesystem) +Group (finsh) +Group (LwIP) +Group (library) + +File 1,1,<.\application.c> +File 1,1,<.\startup.c> +File 1,1,<.\board.c> +File 1,1,<.\sdcard.c> +File 1,1,<.\luminaryif.c> +File 2,1,<..\..\src\clock.c> +File 2,1,<..\..\src\device.c> +File 2,1,<..\..\src\idle.c> +File 2,1,<..\..\src\ipc.c> +File 2,1,<..\..\src\irq.c> +File 2,1,<..\..\src\kservice.c> +File 2,1,<..\..\src\mem.c> +File 2,1,<..\..\src\mempool.c> +File 2,1,<..\..\src\module.c> +File 2,1,<..\..\src\object.c> +File 2,1,<..\..\src\rtm.c> +File 2,1,<..\..\src\scheduler.c> +File 2,1,<..\..\src\slab.c> +File 2,1,<..\..\src\thread.c> +File 2,1,<..\..\src\timer.c> +File 3,1,<..\..\libcpu\arm\lm3s\cpu.c> +File 3,1,<..\..\libcpu\arm\lm3s\fault.c> +File 3,1,<..\..\libcpu\arm\lm3s\interrupt.c> +File 3,1,<..\..\libcpu\arm\lm3s\serial.c> +File 3,1,<..\..\libcpu\arm\lm3s\stack.c> +File 3,2,<..\..\libcpu\arm\lm3s\context_rvds.S> +File 3,2,<..\..\libcpu\arm\lm3s\fault_rvds.S> +File 3,2,<..\..\libcpu\arm\lm3s\start_rvds.S> +File 3,1,<..\..\libcpu\arm\common\backtrace.c> +File 3,1,<..\..\libcpu\arm\common\div0.c> +File 3,1,<..\..\libcpu\arm\common\showmem.c> +File 4,1,<..\..\components\dfs\src\dfs.c> +File 4,1,<..\..\components\dfs\src\dfs_fs.c> +File 4,1,<..\..\components\dfs\src\dfs_file.c> +File 4,1,<..\..\components\dfs\src\dfs_posix.c> +File 4,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c> +File 4,1,<..\..\components\dfs\filesystems\elmfat\ff.c> +File 5,1,<..\..\components\finsh\cmd.c> +File 5,1,<..\..\components\finsh\finsh_compiler.c> +File 5,1,<..\..\components\finsh\finsh_error.c> +File 5,1,<..\..\components\finsh\finsh_heap.c> +File 5,1,<..\..\components\finsh\finsh_init.c> +File 5,1,<..\..\components\finsh\finsh_node.c> +File 5,1,<..\..\components\finsh\finsh_ops.c> +File 5,1,<..\..\components\finsh\finsh_parser.c> +File 5,1,<..\..\components\finsh\finsh_token.c> +File 5,1,<..\..\components\finsh\finsh_var.c> +File 5,1,<..\..\components\finsh\finsh_vm.c> +File 5,1,<..\..\components\finsh\shell.c> +File 5,1,<..\..\components\finsh\symbol.c> +File 6,1,<..\..\components\net\lwip\src\api\api_lib.c> +File 6,1,<..\..\components\net\lwip\src\api\api_msg.c> +File 6,1,<..\..\components\net\lwip\src\api\err.c> +File 6,1,<..\..\components\net\lwip\src\api\netbuf.c> +File 6,1,<..\..\components\net\lwip\src\api\netdb.c> +File 6,1,<..\..\components\net\lwip\src\api\netifapi.c> +File 6,1,<..\..\components\net\lwip\src\api\sockets.c> +File 6,1,<..\..\components\net\lwip\src\api\tcpip.c> +File 6,1,<..\..\components\net\lwip\src\arch\sys_arch.c> +File 6,1,<..\..\components\net\lwip\src\arch\sys_arch_init.c> +File 6,1,<..\..\components\net\lwip\src\core\dhcp.c> +File 6,1,<..\..\components\net\lwip\src\core\dns.c> +File 6,1,<..\..\components\net\lwip\src\core\init.c> +File 6,1,<..\..\components\net\lwip\src\core\memp.c> +File 6,1,<..\..\components\net\lwip\src\core\netif.c> +File 6,1,<..\..\components\net\lwip\src\core\pbuf.c> +File 6,1,<..\..\components\net\lwip\src\core\raw.c> +File 6,1,<..\..\components\net\lwip\src\core\stats.c> +File 6,1,<..\..\components\net\lwip\src\core\sys.c> +File 6,1,<..\..\components\net\lwip\src\core\tcp.c> +File 6,1,<..\..\components\net\lwip\src\core\tcp_in.c> +File 6,1,<..\..\components\net\lwip\src\core\tcp_out.c> +File 6,1,<..\..\components\net\lwip\src\core\udp.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\autoip.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\icmp.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\igmp.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\inet.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c> +File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\mib2.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\mib_structs.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\msg_in.c> +File 6,1,<..\..\components\net\lwip\src\core\snmp\msg_out.c> +File 6,1,<..\..\components\net\lwip\src\netif\etharp.c> +File 6,1,<..\..\components\net\lwip\src\netif\ethernetif.c> +File 6,1,<..\..\components\net\lwip\src\netif\loopif.c> +File 6,1,<..\..\components\net\lwip\src\netif\slipif.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\auth.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\chap.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\chpms.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\fsm.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\ipcp.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\lcp.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\magic.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\md5.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\pap.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\ppp.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\ppp_oe.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\randm.c> +File 6,1,<..\..\components\net\lwip\src\netif\ppp\vj.c> +File 7,4,<.\Libraries\driverlib\rvmdk\driverlib.lib> + + +Options 1,0,0 // Target 'RT-Thread-lm3s' + Device (LM3S6918) + Vendor (Luminary Micro) + Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")) + FlashUt () + StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code")) + FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000)) + DevID (4722) + Rgf (LM3Sxxxx.H) + Mem () + C () + A () + RL () + OH () + DBC_IFX () + DBC_CMS () + DBC_AMS () + DBC_LMS () + UseEnv=0 + EnvBin () + EnvInc () + EnvLib () + EnvReg (˙Luminary\) + OrgReg (˙Luminary\) + TgStat=16 + OutDir (.\) + OutName (rtthread-lm3s) + GenApp=1 + GenLib=0 + GenHex=0 + Debug=1 + Browse=1 + LstDir (.\) + HexSel=1 + MG32K=0 + TGMORE=0 + RunUsr 0 0 <> + RunUsr 1 0 <> + BrunUsr 0 0 <> + BrunUsr 1 0 <> + CrunUsr 0 0 <> + CrunUsr 1 0 <> + SVCSID <> + GLFLAGS=1790 + ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ACPUTYP ("Cortex-M3") + RVDEV () + ADSTFLGA { 0,12,0,0,163,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0 } + OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + OCMADSIRAM { 0,0,0,0,32,0,0,1,0 } + OCMADSIROM { 1,0,0,0,0,0,0,4,0 } + OCMADSXRAM { 0,0,0,0,0,0,0,0,0 } + OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 } + RV_STAVEC () + ADSCCFLG { 5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSCMISC () + ADSCDEFN () + ADSCUDEF () + ADSCINCD (Libraries\inc;..\..\include;..\..\libcpu\arm\lm3s;..\..\components\net\lwip\src\include;Libraries\driverlib;.;..\..\components\net\lwip\src\include\ipv4;..\..\components\dfs;Libraries;..\..\components\net\lwip\src\arch\include;..\..\components\dfs\include;..\..\components\net\lwip\src;..\..\libcpu\arm\common;..\..\components\net\lwip\src\netif\ppp;..\..\components\finsh;..\..\components\net\lwip\src\include\netif) + ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSAMISC () + ADSADEFN () + ADSAUDEF () + ADSAINCD () + PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + IncBld=1 + AlwaysBuild=0 + GenAsm=0 + AsmAsm=0 + PublicsOnly=0 + StopCode=3 + CustArgs () + LibMods () + ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSLDTA (0x00000000) + ADSLDDA (0x00000000) + ADSLDSC () + ADSLDIB () + ADSLDIC () + ADSLDMC ( --keep __fsym_* --keep __vsym_*) + ADSLDIF () + ADSLDDW () + OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918) + OPTDBG 48118,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() + FLASH1 { 1,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 } + FLASH2 (Segger\JLTAgdi.dll) + FLASH3 ("" ()) + FLASH4 () +EndOpt + diff --git a/bsp/lm3s/project_lwip_dfs.Opt b/bsp/lm3s/project_lwip_dfs.Opt deleted file mode 100644 index b8023b799..000000000 --- a/bsp/lm3s/project_lwip_dfs.Opt +++ /dev/null @@ -1,133 +0,0 @@ -### uVision2 Project, (C) Keil Software -### Do not modify ! - - cExt (*.c) - aExt (*.s*; *.src; *.a*) - oExt (*.obj) - lExt (*.lib) - tExt (*.txt; *.h; *.inc) - pExt (*.plm) - CppX (*.cpp) - DaveTm { 0,0,0,0,0,0,0,0 } - -Target (RT-Thread-LM3S), 0x0004 // Tools: 'ARM-ADS' -GRPOPT 1,(Startup),1,0,0 -GRPOPT 2,(Kernel),0,0,0 -GRPOPT 3,(finsh),0,0,0 -GRPOPT 4,(LM3S),0,0,0 -GRPOPT 5,(driverlib),0,0,0 -GRPOPT 6,(Filesystem),1,0,0 -GRPOPT 7,(LwIP),0,0,0 - -OPTFFF 1,1,1,0,0,25,25,0,<.\application.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,236,2,0,0,123,1,0,0 } -OPTFFF 1,2,1,0,0,63,74,0,<.\board.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,183,2,0,0,100,1,0,0 } -OPTFFF 1,3,1,0,0,130,135,0,<.\startup.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,161,2,0,0,71,1,0,0 } -OPTFFF 1,4,5,419430400,0,124,124,0,<.\rtconfig.h> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,42,1,0,0 } -OPTFFF 1,5,1,0,0,89,95,0,<.\sdcard.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,183,2,0,0,9,1,0,0 } -OPTFFF 1,6,1,0,0,278,284,0,<.\luminaryif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,129,1,0,0 } -OPTFFF 1,7,5,0,0,16,20,0,<.\board.h> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,110,0,0,0,145,0,0,0,227,2,0,0,188,1,0,0 } -OPTFFF 2,8,1,0,0,0,0,0,<..\..\src\clock.c> -OPTFFF 2,9,1,0,0,0,0,0,<..\..\src\device.c> -OPTFFF 2,10,1,0,0,58,60,0,<..\..\src\idle.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,129,1,0,0 } -OPTFFF 2,11,1,0,0,0,0,0,<..\..\src\ipc.c> -OPTFFF 2,12,1,0,0,0,0,0,<..\..\src\irq.c> -OPTFFF 2,13,1,0,0,0,0,0,<..\..\src\mem.c> -OPTFFF 2,14,1,0,0,0,0,0,<..\..\src\mempool.c> -OPTFFF 2,15,1,0,0,0,0,0,<..\..\src\object.c> -OPTFFF 2,16,1,0,0,0,0,0,<..\..\src\scheduler.c> -OPTFFF 2,17,1,0,0,0,0,0,<..\..\src\slab.c> -OPTFFF 2,18,1,0,0,0,0,0,<..\..\src\thread.c> -OPTFFF 2,19,1,0,0,0,0,0,<..\..\src\timer.c> -OPTFFF 2,20,1,0,0,0,0,0,<..\..\src\kservice.c> -OPTFFF 3,21,1,0,0,0,0,0,<..\..\components\finsh\symbol.c> -OPTFFF 3,22,1,0,0,0,0,0,<..\..\components\finsh\cmd.c> -OPTFFF 3,23,1,0,0,0,0,0,<..\..\components\finsh\finsh_compiler.c> -OPTFFF 3,24,1,0,0,0,0,0,<..\..\components\finsh\finsh_error.c> -OPTFFF 3,25,1,0,0,0,0,0,<..\..\components\finsh\finsh_heap.c> -OPTFFF 3,26,1,0,0,0,0,0,<..\..\components\finsh\finsh_init.c> -OPTFFF 3,27,1,0,0,0,0,0,<..\..\components\finsh\finsh_node.c> -OPTFFF 3,28,1,0,0,0,0,0,<..\..\components\finsh\finsh_ops.c> -OPTFFF 3,29,1,0,0,0,0,0,<..\..\components\finsh\finsh_parser.c> -OPTFFF 3,30,1,0,0,0,0,0,<..\..\components\finsh\finsh_token.c> -OPTFFF 3,31,1,0,0,0,0,0,<..\..\components\finsh\finsh_var.c> -OPTFFF 3,32,1,0,0,0,0,0,<..\..\components\finsh\finsh_vm.c> -OPTFFF 3,33,1,0,0,0,0,0,<..\..\components\finsh\shell.c> -OPTFFF 4,34,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\cpu.c> -OPTFFF 4,35,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\interrupt.c> -OPTFFF 4,36,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\stack.c> -OPTFFF 4,37,2,0,0,0,0,0,<..\..\libcpu\arm\lm3s\context_rvds.S> -OPTFFF 4,38,2,0,0,28,32,0,<..\..\libcpu\arm\lm3s\start_rvds.S> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,157,2,0,0,100,1,0,0 } -OPTFFF 4,39,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\serial.c> -OPTFFF 4,40,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\fault.c> -OPTFFF 4,41,2,0,0,0,0,0,<..\..\libcpu\arm\lm3s\fault_rvds.S> -OPTFFF 5,42,4,0,0,0,0,0,<..\..\bsp\lm3s\Libraries\driverlib\rvmdk\driverlib.lib> -OPTFFF 6,43,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_fs.c> -OPTFFF 6,44,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_posix.c> -OPTFFF 6,45,1,0,0,0,0,0,<..\..\components\dfs\filesystems\elmfat\ff.c> -OPTFFF 6,46,1,0,0,0,0,0,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c> -OPTFFF 6,47,1,0,0,0,0,0,<..\..\components\dfs\src\dfs.c> -OPTFFF 6,48,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_file.c> -OPTFFF 7,49,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\dhcp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,227,2,0,0,108,1,0,0 } -OPTFFF 7,50,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\dns.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,248,0,0,0 } -OPTFFF 7,51,1,0,0,247,247,0,<..\..\components\net\lwip\src\core\init.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,42,1,0,0 } -OPTFFF 7,52,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\netif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,161,2,0,0,21,1,0,0 } -OPTFFF 7,53,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\pbuf.c> -OPTFFF 7,54,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\raw.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,183,2,0,0,50,1,0,0 } -OPTFFF 7,55,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\stats.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,79,1,0,0 } -OPTFFF 7,56,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\sys.c> -OPTFFF 7,57,1,1006632960,0,3,7,0,<..\..\components\net\lwip\src\core\tcp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,227,2,0,0,158,1,0,0 } -OPTFFF 7,58,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\tcp_in.c> -OPTFFF 7,59,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\tcp_out.c> -OPTFFF 7,60,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\udp.c> -OPTFFF 7,61,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\autoip.c> -OPTFFF 7,62,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\icmp.c> -OPTFFF 7,63,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\igmp.c> -OPTFFF 7,64,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\inet.c> -OPTFFF 7,65,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c> -OPTFFF 7,66,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip.c> -OPTFFF 7,67,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c> -OPTFFF 7,68,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c> -OPTFFF 7,69,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\msg_in.c> -OPTFFF 7,70,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\msg_out.c> -OPTFFF 7,71,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\api_lib.c> -OPTFFF 7,72,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\api_msg.c> -OPTFFF 7,73,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\err.c> -OPTFFF 7,74,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netbuf.c> -OPTFFF 7,75,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netdb.c> -OPTFFF 7,76,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netifapi.c> -OPTFFF 7,77,1,603979776,0,257,257,0,<..\..\components\net\lwip\src\api\tcpip.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,192,2,0,0,253,0,0,0 } -OPTFFF 7,78,1,0,0,0,0,0,<..\..\components\net\lwip\src\netif\etharp.c> -OPTFFF 7,79,1,16777216,0,208,212,0,<..\..\components\net\lwip\src\netif\ethernetif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,2,3,0,0,84,1,0,0 } -OPTFFF 7,80,1,0,0,0,0,0,<..\..\components\net\lwip\src\netif\loopif.c> -OPTFFF 7,81,1,0,0,0,0,0,<..\..\components\net\lwip\src\arch\sys_arch_init.c> -OPTFFF 7,82,1,0,0,0,0,0,<..\..\components\net\lwip\src\arch\sys_arch.c> -OPTFFF 7,83,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\sockets.c> -OPTFFF 7,84,1,503316480,0,350,359,0,<..\..\components\net\lwip\src\core\memp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,205,2,0,0,47,1,0,0 } -OPTFFF 7,85,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c> -OPTFFF 7,86,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c> -OPTFFF 7,87,1,285212672,0,4104,4104,0,<..\..\components\net\lwip\src\core\snmp\mib2.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,183,2,0,0,172,0,0,0 } -OPTFFF 7,88,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\mib_structs.c> - -ExtF 83,101,0,{ 44,0,0,0,2,0,0,0,3,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,205,2,0,0,159,1,0,0 } - -TARGOPT 1, (RT-Thread-LM3S) - ADSCLK=6000000 - OPTTT 1,1,1,0 - OPTHX 1,65535,0,0,0 - OPTLX 79,66,8,<.\> - OPTOX 16 - OPTLT 1,1,1,0,1,1,0,1,0,0,0,0 - OPTXL 1,1,1,1,1,1,1,0,0 - OPTFL 1,0,1 - OPTAX 0 - OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918) - OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() - OPTKEY 0,(DLGTARM)((1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(101=-1,-1,-1,-1,0)(102=-1,-1,-1,-1,0)(103=-1,-1,-1,-1,0)(104=-1,-1,-1,-1,0)(105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(163=-1,-1,-1,-1,0)(164=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)(152=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)(1014=-1,-1,-1,-1,0)(1016=-1,-1,-1,-1,0)(136=-1,-1,-1,-1,0)) - OPTKEY 0,(ARMDBGFLAGS)() - OPTKEY 0,(DLGUARM)((105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(107=-1,-1,-1,-1,0)) - OPTKEY 0,(JL2CM3)(-U20090110 -O14 -S0 -C0 -JU1 -JI127.0.0.1 -JP0 -N00("ARM CoreSight JTAG-DP") -D00(3BA00477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TRE0 -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000) - OPTDF 0x84 - OPTLE <> - OPTLC <> -EndOpt - diff --git a/bsp/lm3s/project_lwip_dfs.Uv2 b/bsp/lm3s/project_lwip_dfs.Uv2 deleted file mode 100644 index 69a441da0..000000000 --- a/bsp/lm3s/project_lwip_dfs.Uv2 +++ /dev/null @@ -1,193 +0,0 @@ -### uVision2 Project, (C) Keil Software -### Do not modify ! - -Target (RT-Thread-LM3S), 0x0004 // Tools: 'ARM-ADS' - -Group (Startup) -Group (Kernel) -Group (finsh) -Group (LM3S) -Group (driverlib) -Group (Filesystem) -Group (LwIP) - -File 1,1,<.\application.c> -File 1,1,<.\board.c> -File 1,1,<.\startup.c> -File 1,5,<.\rtconfig.h> -File 1,1,<.\sdcard.c> -File 1,1,<.\luminaryif.c> -File 1,5,<.\board.h> -File 2,1,<..\..\src\clock.c> -File 2,1,<..\..\src\device.c> -File 2,1,<..\..\src\idle.c> -File 2,1,<..\..\src\ipc.c> -File 2,1,<..\..\src\irq.c> -File 2,1,<..\..\src\mem.c> -File 2,1,<..\..\src\mempool.c> -File 2,1,<..\..\src\object.c> -File 2,1,<..\..\src\scheduler.c> -File 2,1,<..\..\src\slab.c> -File 2,1,<..\..\src\thread.c> -File 2,1,<..\..\src\timer.c> -File 2,1,<..\..\src\kservice.c> -File 3,1,<..\..\components\finsh\symbol.c> -File 3,1,<..\..\components\finsh\cmd.c> -File 3,1,<..\..\components\finsh\finsh_compiler.c> -File 3,1,<..\..\components\finsh\finsh_error.c> -File 3,1,<..\..\components\finsh\finsh_heap.c> -File 3,1,<..\..\components\finsh\finsh_init.c> -File 3,1,<..\..\components\finsh\finsh_node.c> -File 3,1,<..\..\components\finsh\finsh_ops.c> -File 3,1,<..\..\components\finsh\finsh_parser.c> -File 3,1,<..\..\components\finsh\finsh_token.c> -File 3,1,<..\..\components\finsh\finsh_var.c> -File 3,1,<..\..\components\finsh\finsh_vm.c> -File 3,1,<..\..\components\finsh\shell.c> -File 4,1,<..\..\libcpu\arm\lm3s\cpu.c> -File 4,1,<..\..\libcpu\arm\lm3s\interrupt.c> -File 4,1,<..\..\libcpu\arm\lm3s\stack.c> -File 4,2,<..\..\libcpu\arm\lm3s\context_rvds.S> -File 4,2,<..\..\libcpu\arm\lm3s\start_rvds.S> -File 4,1,<..\..\libcpu\arm\lm3s\serial.c> -File 4,1,<..\..\libcpu\arm\lm3s\fault.c> -File 4,2,<..\..\libcpu\arm\lm3s\fault_rvds.S> -File 5,4,<..\..\bsp\lm3s\Libraries\driverlib\rvmdk\driverlib.lib> -File 6,1,<..\..\components\dfs\src\dfs_fs.c> -File 6,1,<..\..\components\dfs\src\dfs_posix.c> -File 6,1,<..\..\components\dfs\filesystems\elmfat\ff.c> -File 6,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c> -File 6,1,<..\..\components\dfs\src\dfs.c> -File 6,1,<..\..\components\dfs\src\dfs_file.c> -File 7,1,<..\..\components\net\lwip\src\core\dhcp.c> -File 7,1,<..\..\components\net\lwip\src\core\dns.c> -File 7,1,<..\..\components\net\lwip\src\core\init.c> -File 7,1,<..\..\components\net\lwip\src\core\netif.c> -File 7,1,<..\..\components\net\lwip\src\core\pbuf.c> -File 7,1,<..\..\components\net\lwip\src\core\raw.c> -File 7,1,<..\..\components\net\lwip\src\core\stats.c> -File 7,1,<..\..\components\net\lwip\src\core\sys.c> -File 7,1,<..\..\components\net\lwip\src\core\tcp.c> -File 7,1,<..\..\components\net\lwip\src\core\tcp_in.c> -File 7,1,<..\..\components\net\lwip\src\core\tcp_out.c> -File 7,1,<..\..\components\net\lwip\src\core\udp.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\autoip.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\icmp.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\igmp.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\inet.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c> -File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\msg_in.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\msg_out.c> -File 7,1,<..\..\components\net\lwip\src\api\api_lib.c> -File 7,1,<..\..\components\net\lwip\src\api\api_msg.c> -File 7,1,<..\..\components\net\lwip\src\api\err.c> -File 7,1,<..\..\components\net\lwip\src\api\netbuf.c> -File 7,1,<..\..\components\net\lwip\src\api\netdb.c> -File 7,1,<..\..\components\net\lwip\src\api\netifapi.c> -File 7,1,<..\..\components\net\lwip\src\api\tcpip.c> -File 7,1,<..\..\components\net\lwip\src\netif\etharp.c> -File 7,1,<..\..\components\net\lwip\src\netif\ethernetif.c> -File 7,1,<..\..\components\net\lwip\src\netif\loopif.c> -File 7,1,<..\..\components\net\lwip\src\arch\sys_arch_init.c> -File 7,1,<..\..\components\net\lwip\src\arch\sys_arch.c> -File 7,1,<..\..\components\net\lwip\src\api\sockets.c> -File 7,1,<..\..\components\net\lwip\src\core\memp.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\mib2.c> -File 7,1,<..\..\components\net\lwip\src\core\snmp\mib_structs.c> - - -Options 1,0,0 // Target 'RT-Thread-LM3S' - Device (LM3S6918) - Vendor (Luminary Micro) - Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(6000000) CPUTYPE("Cortex-M3")) - FlashUt () - StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code")) - FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000)) - DevID (4722) - Rgf (LM3Sxxxx.H) - Mem () - C () - A () - RL () - OH () - DBC_IFX () - DBC_CMS () - DBC_AMS () - DBC_LMS () - UseEnv=0 - EnvBin () - EnvInc () - EnvLib () - EnvReg (˙Luminary\) - OrgReg (˙Luminary\) - TgStat=16 - OutDir (.\obj\) - OutName (rtthread-lm3s) - GenApp=1 - GenLib=0 - GenHex=0 - Debug=1 - Browse=1 - LstDir (.\) - HexSel=1 - MG32K=0 - TGMORE=0 - RunUsr 0 0 <> - RunUsr 1 0 <> - BrunUsr 0 0 <> - BrunUsr 1 0 <> - CrunUsr 0 0 <> - CrunUsr 1 0 <> - SVCSID <> - GLFLAGS=1790 - ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - ACPUTYP ("Cortex-M3") - RVDEV () - ADSTFLGA { 0,12,0,2,99,0,1,66,0,0,0,0,0,0,0,0,0,0,0,0 } - OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - OCMADSIRAM { 0,0,0,0,32,0,0,1,0 } - OCMADSIROM { 1,0,0,0,0,0,0,4,0 } - OCMADSXRAM { 0,0,0,0,0,0,0,0,0 } - OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 } - RV_STAVEC () - ADSCCFLG { 5,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - ADSCMISC () - ADSCDEFN () - ADSCUDEF () - ADSCINCD (.;.\Libraries;..\..\include;..\..\libcpu\arm\lm3s;..\..\components\finsh;..\..\components\dfs;..\..\components\dfs\include;..\..\components\net\lwip\src;..\..\components\net\lwip\src\include;..\..\components\net\lwip\src\arch\include;..\..\components\net\lwip\src\include\ipv4;..\..\components\dfs\include;..\..\components\dfs\filesystems\efsl\src\include;..\..\components\dfs\filesystems\efsl\src\base\include;..\..\components\dfs\filesystems\efsl\src\fs\vfat\include) - ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - ADSAMISC () - ADSADEFN () - ADSAUDEF () - ADSAINCD () - PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - IncBld=1 - AlwaysBuild=0 - GenAsm=0 - AsmAsm=0 - PublicsOnly=0 - StopCode=3 - CustArgs () - LibMods () - ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - ADSLDTA (0x00000000) - ADSLDDA (0x20000000) - ADSLDSC () - ADSLDIB () - ADSLDIC () - ADSLDMC (--keep __fsym_* --keep __vsym_*) - ADSLDIF () - ADSLDDW () - OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918) - OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() - FLASH1 { 9,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 } - FLASH2 (Segger\JL2CM3.dll) - FLASH3 ("" ()) - FLASH4 () -EndOpt - diff --git a/bsp/lm3s/rtconfig.py b/bsp/lm3s/rtconfig.py index 9eadd3e40..a5d3bfe53 100644 --- a/bsp/lm3s/rtconfig.py +++ b/bsp/lm3s/rtconfig.py @@ -1,56 +1,16 @@ -import SCons.cpp -# component options - -# make all component false -RT_USING_DFS = False -RT_USING_FINSH = False -RT_USING_DFS_ELMFAT= False -RT_USING_DFS_YAFFS2= False -RT_USING_LWIP = False -RT_USING_RTGUI = False - -# parse rtconfig.h to get used component -PreProcessor = SCons.cpp.PreProcessor() -f = file('rtconfig.h', 'r') -contents = f.read() -f.close() -PreProcessor.process_contents(contents) -rtconfig_ns = PreProcessor.cpp_namespace - -# finsh shell options -if rtconfig_ns.has_key('RT_USING_FINSH'): - RT_USING_FINSH = True - -# device virtual filesystem options -if rtconfig_ns.has_key('RT_USING_DFS'): - RT_USING_DFS = True - - if rtconfig_ns.has_key('RT_USING_DFS_EFSL'): - RT_USING_DFS_EFSL = True - if rtconfig_ns.has_key('RT_USING_DFS_ELMFAT'): - RT_USING_DFS_ELMFAT = True - if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'): - RT_USING_DFS_YAFFS2 = True - -# lwip options -if rtconfig_ns.has_key('RT_USING_LWIP'): - RT_USING_LWIP = True - if rtconfig_ns.has_key('RT_USING_WEBSERVER'): - RT_USING_WEBSERVER = True - -# rtgui options -if rtconfig_ns.has_key('RT_USING_RTGUI'): - RT_USING_RTGUI = True # toolchains options ARCH='arm' CPU='lm3s' -#PLATFORM = 'gcc' -#EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' -PLATFORM = 'armcc' -EXEC_PATH = 'E:/Keil' -BUILD = 'release' +CROSS_TOOL = 'keil' +if CROSS_TOOL == 'gcc': + PLATFORM = 'gcc' + EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin' +elif CROSS_TOOL == 'keil': + PLATFORM = 'armcc' + EXEC_PATH = 'E:/Keil' +BUILD = 'debug' if PLATFORM == 'gcc': # toolchains @@ -65,7 +25,7 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcpu=cortex-m3 -mthumb' - CFLAGS = DEVICE + ' -Dsourcerygxx' + ' -DRT_USING_MINILIBC' + CFLAGS = DEVICE + ' -Dsourcerygxx' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lm3s.map,-cref,-u,Reset_Handler -T lm3s_rom.ld' @@ -78,7 +38,6 @@ if PLATFORM == 'gcc': else: CFLAGS += ' -O2' - RT_USING_MINILIBC = True POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' elif PLATFORM == 'armcc': @@ -106,6 +65,4 @@ elif PLATFORM == 'armcc': CFLAGS += ' -O2' RT_USING_MINILIBC = False - if RT_USING_FINSH: - LFLAGS += ' --keep __fsym_* --keep __vsym_*' POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' diff --git a/bsp/lm3s/template.Uv2 b/bsp/lm3s/template.Uv2 new file mode 100644 index 000000000..983ed2099 --- /dev/null +++ b/bsp/lm3s/template.Uv2 @@ -0,0 +1,98 @@ +### uVision2 Project, (C) Keil Software +### Do not modify ! + +Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS' + + + + +Options 1,0,0 // Target 'RT-Thread-lm3s' + Device (LM3S6918) + Vendor (Luminary Micro) + Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")) + FlashUt () + StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code")) + FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000)) + DevID (4722) + Rgf (LM3Sxxxx.H) + Mem () + C () + A () + RL () + OH () + DBC_IFX () + DBC_CMS () + DBC_AMS () + DBC_LMS () + UseEnv=0 + EnvBin () + EnvInc () + EnvLib () + EnvReg (˙Luminary\) + OrgReg (˙Luminary\) + TgStat=16 + OutDir (.\) + OutName (rtthread-lm3s) + GenApp=1 + GenLib=0 + GenHex=0 + Debug=1 + Browse=1 + LstDir (.\) + HexSel=1 + MG32K=0 + TGMORE=0 + RunUsr 0 0 <> + RunUsr 1 0 <> + BrunUsr 0 0 <> + BrunUsr 1 0 <> + CrunUsr 0 0 <> + CrunUsr 1 0 <> + SVCSID <> + GLFLAGS=1790 + ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ACPUTYP ("Cortex-M3") + RVDEV () + ADSTFLGA { 0,12,0,0,160,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0 } + OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + OCMADSIRAM { 0,0,0,0,32,0,0,1,0 } + OCMADSIROM { 1,0,0,0,0,0,0,4,0 } + OCMADSXRAM { 0,0,0,0,0,0,0,0,0 } + OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 } + RV_STAVEC () + ADSCCFLG { 5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSCMISC () + ADSCDEFN () + ADSCUDEF () + ADSCINCD () + ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSAMISC () + ADSADEFN () + ADSAUDEF () + ADSAINCD () + PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + IncBld=1 + AlwaysBuild=0 + GenAsm=0 + AsmAsm=0 + PublicsOnly=0 + StopCode=3 + CustArgs () + LibMods () + ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } + ADSLDTA (0x00000000) + ADSLDDA (0x00000000) + ADSLDSC () + ADSLDIB () + ADSLDIC () + ADSLDMC () + ADSLDIF () + ADSLDDW () + OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918) + OPTDBG 48118,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() + FLASH1 { 1,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 } + FLASH2 (Segger\JLTAgdi.dll) + FLASH3 ("" ()) + FLASH4 () +EndOpt +