新聞中心

EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 怎樣讓Keil軟件同時(shí)兼容51單片機(jī)和ARM單片機(jī)的問題

怎樣讓Keil軟件同時(shí)兼容51單片機(jī)和ARM單片機(jī)的問題

作者: 時(shí)間:2016-11-30 來源:網(wǎng)絡(luò) 收藏
相信學(xué)ARM的童鞋大多數(shù)都是先學(xué)過51的,你如果用Keil這樣的編譯環(huán)境的話,也許你會(huì)發(fā)現(xiàn)之前學(xué)校51的Keil開發(fā)環(huán)境無法兼容ARM,或者你在做項(xiàng)目,同時(shí)要用到Keil開發(fā)51單片機(jī)和ARM單片機(jī),這個(gè)時(shí)候就開始無奈了,發(fā)現(xiàn)裝了keil C或ADK 里面都只有51或者ARM一種單片機(jī)核可供選。難道要我們分別安裝這兩個(gè)軟件?答案是不可取的,經(jīng)過了解,KEIL公司是被ARM公司收購(gòu)了,自從是一家人以后,它們總該相處得好點(diǎn)吧,至少兼容問題總不能自家人排斥自家人,那就太不夠意思了,呵呵。
這幾天因?yàn)楣镜钠齐娔X只有 10G的C盤空間被我裝軟件以及桌面上放的各種文件給填滿了,所以打算把一些軟件移到其它盤,刪除了KEIL軟件以后,發(fā)現(xiàn)之前可以同時(shí)編譯51和ARM 的keil夭折了,所以自己研究了一下,把它的過程記錄下來留著以后可作參考。具體方法如下:
第一步到http://www.51hei.com/下載并安裝Keil C:
直接找開Keil C一直下一步,中間填下SN碼,這個(gè)在破解的KEIL C軟件里面都會(huì)有的。安裝完成后的環(huán)境如下:


第二步把上圖Tools文件用文本的方式打開并復(fù)制里面的內(nèi)容保存起來,內(nèi)容如下:

[C51]
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPGS51.PDF("uVision2 Getting Started")
BOOK2=HLPC51.PDF("C51 Users Guide")
BOOK3=HLPC51LIB.CHM("C51 Library Functions",C)
BOOK4=HLPA51.PDF("Assembler/Utilities")
BOOK5=HLPTR51.CHM("RTX51 Tiny Users Guide")
BOOK6=HLPDBG51.CHM("uVision2 Debug Commands")
BOOK7=ISD51ISD51.HTM("ISD51 In System Debugger")
BOOK8=HLPFlashMon.CHM("Flash Monitor")
BOOK9=MON390MON390.HTM("MON390: Dallas Contiguous Mode Monitor")
TDRV0=BINMON51.DLL ("Keil Monitor-51 Driver")
TDRV1=BINISD51.DLL ("Keil ISD51 In-System Debugger")
TDRV2=BINMON390.DLL ("MON390: Dallas Contiguous Mode")
TDRV3=BINLPC2EMP.DLL ("LPC900 EPM Emulator/Programmer")
RTOS1=RTXTINY.DLL ("RTX-51 Tiny")
RTOS2=RTX51.DLL ("RTX-51 Full")
Version=V7.0
PATH="D:KeilC51"
SN=K1DZP-5IUSH-A01UE



我用的軟件兼容性還是蠻好的,里面有C251,,,C51的聲明段,因?yàn)槲抑灰玫?1和ARM兼容,所以我只把C51的代碼復(fù)制下來就行了。
第三步安裝ADK,這里要注意ADK的版本要比KEIL C的版本高一個(gè)等級(jí),只有這樣才能兼容,如果不這樣的話,可能調(diào)試功能部分會(huì)有問題。比如KEIL與proteus進(jìn)行調(diào)試時(shí)會(huì)出現(xiàn)調(diào)試不了的問題。
安裝ADK同上,直接下一步,有提示要SN號(hào)的時(shí)候在軟件里面找了復(fù)制,粘貼就行了。安裝路徑跟KEIL C的路徑一樣就行了,我在網(wǎng)上看有人說不能同一個(gè)路徑,其實(shí)同個(gè)路徑好點(diǎn),省了過會(huì)要復(fù)制兩次代碼,而且還不用搞兩個(gè)電路在電腦,又麻煩又不方便。安裝后的效果如下:

接著打開TOOLS文件,把上面的代碼復(fù)制,粘貼上去。
[UV2]
BOOK0=UV3RELEASE_NOTES.HTM("uVision Release Notes")
BOOK1=
ARMUSE=0
rem ARMUSE= 0:=Cygnus/GNU, 1:=ARM-ADS, 2:=Keil (future)
Version=V2.2
ORGANIZATION="LN"
NAME="admin Michael", "DSD"
EMAIL="LUSSBY"
ARMSEL=1

[C166]
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPGS166.PDF("uVision2 Getting Started")
BOOK2=HLPC166.PDF("C166 Users Guide")
BOOK3=HLPC166LIB.CHM("C166 Library Functions",C)
BOOK4=HLPEC166.CHM("EC166 Embedded C++")
BOOK5=HLPA166.PDF("A166 & Utilities Users Guide")
BOOK6=HLPDBG166.CHM("uVision2 Debug Commands")
BOOK7=HLPOCDS.CHM("OCDS Debugging")
TDRV0=MONITORMON166.DLL ("Keil Monitor-166 Driver")
TDRV1=OCDSCBC166.DLL ("OCDS Driver for C16xU/H/UTAH")
TDRV2=OCDSOCDSXC.DLL ("OCDS Driver for XC16x")
RTOS1=RTXTINY.DLL ("RTX-166 Tiny")
RTOS2=RTXFULL.DLL ("RTX-166 Full")
Version=V4.2
[C51]
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPGS51.PDF("uVision2 Getting Started")
BOOK2=HLPC51.PDF("C51 Users Guide")
BOOK3=HLPC51LIB.CHM("C51 Library Functions",C)
BOOK4=HLPA51.PDF("Assembler/Utilities")
BOOK5=HLPTR51.CHM("RTX51 Tiny Users Guide")
BOOK6=HLPDBG51.CHM("uVision2 Debug Commands")
BOOK7=ISD51ISD51.HTM("ISD51 In System Debugger")
BOOK8=HLPFlashMon.CHM("Flash Monitor")
BOOK9=MON390MON390.HTM("MON390: Dallas Contiguous Mode Monitor")
TDRV0=BINMON51.DLL ("Keil Monitor-51 Driver")
TDRV1=BINISD51.DLL ("Keil ISD51 In-System Debugger")
TDRV2=BINMON390.DLL ("MON390: Dallas Contiguous Mode")
TDRV3=BINLPC2EMP.DLL ("LPC900 EPM Emulator/Programmer")
RTOS1=RTXTINY.DLL ("RTX-51 Tiny")
RTOS2=RTX51.DLL ("RTX-51 Full")
Version=V7.0
PATH="D:KeilC51"
SN=K1DZP-5IUSH-A01UE
[C251]
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPGS51.PDF("uVision2 Getting Started")
BOOK2=HLPC251.PDF("C251 Users Guide")
BOOK3=HLPC251LIB.CHM("C251 Library Functions",C)
BOOK4=HLPA51.PDF("Assembler/Utilities")
BOOK5=HLPDBG251.CHM("uVision2 Debug Commands")
TDRV0=BINMON251.DLL ("Keil Monitor-251 Driver")
Version=V3.5
[ARM]
PATH="D:KeilARM"
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPARMTOOLS.chm("Complete Users Guide Selection", C)
BOOK2=HLPRL_RELEASE_NOTES.HTM("RTL-ARM Release Notes")
BOOK3=HLPRVI.chm("RV Compiler Introduction")
BOOK4="C:Program FilesCodeSourcerySourcery G++ Litesharedocarm-2007q3-53-arm-none-eabipdfgccgcc.pdf" ("GNU C Compiler",GEN)
TDRV0=ULINKARM7.DLL("ULINK ARM7 Debugger")
Version=3.80a
PATH1="C:Program FilesCodeSourcerySourcery G++ Lite"
CPUDLL0=SARM.DLL(TDRV0,TDRV5,TDRV6,TDRV8) # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV1,TDRV3,TDRV4,TDRV5,TDRV7,TDRV8) # Drivers for Cortex-M devices
BOOK5="C:Program FilesCodeSourcerySourcery G++ Litesharedocarm-2007q3-53-arm-none-eabipdfas.pdf" ("GNU Assembler",GEN)
BOOK6="C:Program FilesCodeSourcerySourcery G++ Litesharedocarm-2007q3-53-arm-none-eabipdfld.pdf" ("GNU Linker",GEN)
BOOK7="C:Program FilesCodeSourcerySourcery G++ Litesharedocarm-2007q3-53-arm-none-eabipdfinutils.pdf" ("GNU Binary Utilities",GEN)
TDRV1=BINUL2ARM.DLL("ULINK ARM Debugger")
TDRV2=BINUL2CM3.DLL("ULINK Cortex Debugger")
TDRV3=BINAGDIRDI.DLL("RDI Interface Driver")
TDRV4=BINABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV5=BINlmidk-agdi.dll("Luminary Eval Board")
TDRV6=SignumSigUV3Arm.dll("Signum Systems JTAGjet")
TDRV7=SeggerJLTAgdi.dll("J-LINK / J-TRACE")
TDRV8=SeggerJL2CM3.dll("Cortex-M3 J-LINK")
TDRV9=STLinkST-LINKIII-KEIL.dll ("ST-Link Debugger")
[ARMADS]
PATH="D:KeilARM"
PATH1="BIN40"
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPARMTOOLS.chm("Complete Users Guide Selection", C)
BOOK2=HLPRL_RELEASE_NOTES.HTM("RTL-ARM Release Notes")
BOOK3=HLPRVI.chm("RV Compiler Introduction")
BOOK4=
BOOK5=
TDRV0=ULINKARM7.DLL("ULINK ARM7 Debugger")
Version=V0.1

上一頁(yè) 1 2 下一頁(yè)

評(píng)論


技術(shù)專區(qū)

關(guān)閉