keil c51 與 MDK 沖突的解決
然后上網(wǎng)一查果然有很多人遇到這個(gè)問(wèn)題,錯(cuò)誤提示為下圖:
本文引用地址:http://m.butianyuan.cn/article/201611/323622.htm其實(shí)這個(gè)是MDK和KEIL C51 配置文件沖突的問(wèn)題,可以參考下兩個(gè)人的配置文件:
[C51]
PATH="D:Program FilesKeil_C702c51"(修改添加部分)
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=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
==============================================================
[ARM]
PATH="D:Program FilesMDK4.10ARM"
VERSION=4.10
PATH1="C:Program FilesCodeSourcerySourcery G++ Lite"
TOOLPREFIX=arm-none-eabi-
CPUDLL0=SARM.DLL(TDRV0,TDRV5,TDRV6,TDRV10) # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV1,TDRV2,TDRV3,TDRV4,TDRV5,TDRV7,TDRV8,TDRV9) # Drivers for Cortex-M devices
BOOK0="HLPRELEASE_NOTES.HTM" ("Release Notes",GEN)
BOOK1="HLPARMTOOLS.chm" ("Complete Users Guide Selection",C)
BOOK2="HLPRL_RELEASE_NOTES.HTM" ("RTL-ARM Release Notes",GEN)
BOOK3="HLPRVI.chm" ("RV Compiler Introduction",GEN)
BOOK4="SignumDocsSigUV3Arm.htm" ("Signum Systems JTAGjet Driver Documentation",GEN)
TDRV0=BINUL2ARM.DLL("ULINK ARM Debugger")
TDRV1=BINUL2CM3.DLL("ULINK Cortex Debugger")
TDRV2=BINAGDIRDI.DLL("RDI Interface Driver")
TDRV3=BINABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV4=BINlmidk-agdi.dll("Stellaris ICDI")
TDRV5=SignumSigUV3Arm.dll("Signum Systems JTAGjet")
TDRV6=SeggerJLTAgdi.dll("J-LINK / J-TRACE")
TDRV7=SeggerJL2CM3.dll("Cortex-M3 J-LINK")
TDRV8=STLinkST-LINKIII-KEIL.dll ("ST-Link Debugger")
TDRV9=BINULP2CM3.DLL("ULINK Pro Cortex Debugger")
TDRV10=BINULP2ARM.DLL("ULINK Pro ARM Debugger")
LIC0=ATT9U-SR4AF-S9MG4-F9K4J-X1RVH-SJP83
我想大家一定發(fā)現(xiàn)問(wèn)題了,就是在c51的編譯器等目錄下面沒(méi)有他的目標(biāo)路徑而arm有,所以他肯定會(huì)提示工具不匹配之類的問(wèn)題。
解決方法很簡(jiǎn)單,根據(jù)ARM的樣子也寫(xiě)個(gè)路徑就OK了,如上圖所示修改添加部分。
評(píng)論