最近又作了一些C51的作业,发现keil c51与 mdk 有抵触。
然后上网一查果然有很多人遇到这个问题,过错提示为下图:
其实这个是MDK和KEIL C51 配置文件抵触的问题,能够参阅下两个人的配置文件:
[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.%&&&&&%(“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”)
L%&&&&&%0=ATT9U-SR4AF-S9MG4-F9K4J-X1RVH-SJP83
我想我们必定发现问题了,就是在c51的编译器等目录下面没有他的方针途径而arm有,所以他肯定会提示东西不匹配之类的问题。
解决方法很简单,依据ARM的姿态也写个途径就OK了,如上图所示修正增加部分。