MDK5兼容c51方法

1.将以前安装的C51文件夹复制到MDK5的安装路径下。

2.将c51的TOOLS.INI文本中的:

[C51]
PATH="C:\Keil_v5\C51\"
SN=K1DZP-5IUSH-A01UE
VERSION=V9.01
BOOK0="HLP\RELEASE_NOTES.HTM" ("Release Notes",GEN)
BOOK1="HLP\GS51.PDF" ("uVision2 Getting Started",GEN)
BOOK2="HLP\C51.PDF" ("C51 User's Guide",GEN)
BOOK3="HLP\C51LIB.CHM" ("C51 Library Functions",C)
BOOK4="HLP\A51.PDF" ("Assembler/Utilities",GEN)
BOOK5="HLP\TR51.CHM" ("RTX51 Tiny User's Guide",GEN)
BOOK6="HLP\DBG51.CHM" ("uVision2 Debug Commands",GEN)
BOOK7="HLP\ISD51.CHM" ("ISD51 In System Debugger",GEN)
BOOK8="HLP\FlashMon51.CHM" ("Flash Monitor",GEN)
BOOK9="MON390\MON390.HTM" ("MON390: Dallas Contiguous Mode Monitor",GEN)
TDRV0=BIN\MON51.DLL ("Keil Monitor-51 Driver")
TDRV1=BIN\ISD51.DLL ("Keil ISD51 In-System Debugger")
TDRV2=BIN\MON390.DLL ("MON390: Dallas Contiguous Mode")
TDRV3=BIN\LPC2EMP.DLL ("LPC900 EPM Emulator/Programmer")
TDRV4=BIN\UL2UPSD.DLL ("ST-uPSD ULINK Driver")
RTOS1=RTXTINY.DLL ("RTX-51 Tiny")
RTOS2=RTX51.DLL ("RTX-51 Full")
LIC0=GM82Z-JH0EN-4FUI9-4DQIL-PR173-UQXMT
TDRV5=BIN\STCMON51.DLL ("STC Monitor-51 Driver")

复制上面部分拷贝到MDK5安装路径下的TOOLS.INI文本中,复制到文本后面即可,记住要修改c51安装路径,保存最后如下:

[UV2]
ORGANIZATION="微软中国"
NAME="微软用户", "superman"
EMAIL="[email protected]"
ARMSEL=1
USERTE=1
TOOL_VARIANT=mdk_pro
RTEPATH="C:\Keil_v5\ARM\PACK"
LEGACY_CM=1
CDB0=UV4\STC.CDB ("STC MCU Database")
[ARM]
PATH="C:\Keil_v5\ARM\"
VERSION=5.17
PATH1="C:\GNU Tools ARM Embedded\4.9 2015q2\"
TOOLPREFIX=arm-none-eabi-
CPUDLL0=SARM.DLL(TDRV0,TDRV4,TDRV5,TDRV8)                                                          # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV1,TDRV2,TDRV3,TDRV4,TDRV6,TDRV7,TDRV9,TDRV10,TDRV11,TDRV12,TDRV13,TDRV14)  # Drivers for Cortex-M devices
CPUDLL2=SARMCR4.DLL(TDRV6)                                                                         # Drivers for Cortex-R4 devices
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes",GEN)
BOOK1=HLP\ARMTOOLS.chm("Complete User's Guide Selection",C)
TDRV0=BIN\UL2ARM.DLL("ULINK2/ME ARM Debugger")
TDRV1=BIN\UL2CM3.DLL("ULINK2/ME Cortex Debugger")
TDRV2=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV3=BIN\lmidk-agdi.dll("Stellaris ICDI")
TDRV4=Signum\SigUV3Arm.dll("Signum Systems JTAGjet")
TDRV5=Segger\JLTAgdi.dll("J-LINK / J-TRACE ARM")
TDRV6=Segger\JL2CM3.dll("J-LINK / J-TRACE Cortex")
TDRV7=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
TDRV8=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
TDRV9=NULink\Nu_Link.dll("NULink Debugger")
TDRV10=SiLabs\SLAB_CM_Keil.dll("SiLabs UDA Debugger")
TDRV11=STLink\ST-LINKIII-KEIL_SWO.dll ("ST-Link Debugger")
TDRV12=BIN\CMSIS_AGDI.dll("CMSIS-DAP Debugger")
TDRV13=BIN\DbgFM.DLL("Fast Models Debugger")
TDRV14=PEMicro\Pemicro_ArmCortexInterface.dll("PEMicro Debugger")
DELDRVPKG0=ULINK\UninstallULINK.exe("ULINK Pro Driver V1.0")
LIC0=FQQCX-HN3M2-JMJ98-3868W-L22WN-G3LA0
BOOK2=HLP\RELEASE_NOTES_CM.HTM("Legacy Release Notes for Cortex-M",GEN)
[ARMADS]
PATH="C:\Keil_v5\ARM\"
PATH1=".\ARMCC\bin\"
CPUDLL0=SARM.DLL(TDRV0,TDRV4,TDRV5,TDRV8)                                                          # Drivers for ARM7/9 devices
CPUDLL1=SARMCM3.DLL(TDRV1,TDRV2,TDRV3,TDRV4,TDRV6,TDRV7,TDRV9,TDRV10,TDRV11,TDRV12,TDRV13,TDRV14)  # Drivers for Cortex-M devices
CPUDLL2=SARMCR4.DLL(TDRV6)                                                                         # Drivers for Cortex-R4 devices
BOOK0=HLP\mdk5-getting-started.pdf("MDK-ARM Getting Started (PDF)",GEN)
BOOK1=HLP\RELEASE_NOTES.HTM("Release Notes",GEN)
BOOK2=HLP\ARMTOOLS.chm("Complete User's Guide Selection",C)
BOOK3=HLP\DUI0592E_02_mdk_getting_started_guide.pdf("ARM Compiler Getting Started Guide v5.06 for 礦ision (PDF)",GEN)
BOOK4=HLP\DUI0375G_02_mdk_armcc_user_guide.pdf("ARM Compiler v5.06 for 礦ision (PDF)",GEN)
BOOK5=HLP\DUI0377G_02_mdk_armlink_user_guide.pdf("ARM Linker v5.06 for 礦ision (PDF)",GEN)
BOOK6=HLP\DUI0378G_02_mdk_libraries_user_guide.pdf("ARM Libraries and Floating Point Support Guide v5.06 for 礦ision (PDF)",GEN)
BOOK7=HLP\DUI0379G_02_mdk_armasm_user_guide.pdf("ARM Assembler User Guide v5.06 for 礦ision (PDF)",GEN)
BOOK8=HLP\DUI0459F_02_mdk_fromelf_user_guide.pdf("Using the fromelf Image Converter v5.06 for 礦ision (PDF)",GEN)
BOOK9=HLP\DUI0590E_02_mdk_armar_user_guide.pdf("Creating Static Software Libraries with armar v5.06 for 礦ision (PDF)",GEN)
BOOK10=HLP\DUI0591E_02_mdk_errors_and_warnings_reference_guide.pdf("ARM Compiler Error and Warnings Reference Guide v5.06 for 礦ision (PDF)",GEN)
BOOK11=HLP\DUI0593E_02_mdk_migration_compatibility_guide.pdf("ARM Migration and Compatibility Guide v5.06 for 礦ision (PDF)",GEN)
TDRV0=BIN\UL2ARM.DLL("ULINK2/ME ARM Debugger")
TDRV1=BIN\UL2CM3.DLL("ULINK2/ME Cortex Debugger")
TDRV2=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV3=BIN\lmidk-agdi.dll("Stellaris ICDI")
TDRV4=Signum\SigUV3Arm.dll("Signum Systems JTAGjet")
TDRV5=Segger\JLTAgdi.dll("J-LINK / J-TRACE ARM")
TDRV6=Segger\JL2CM3.dll("J-LINK / J-TRACE Cortex")
TDRV7=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
TDRV8=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
TDRV9=NULink\Nu_Link.dll("NULink Debugger")
TDRV10=SiLabs\SLAB_CM_Keil.dll("SiLabs UDA Debugger")
TDRV11=STLink\ST-LINKIII-KEIL_SWO.dll ("ST-Link Debugger")
TDRV12=BIN\CMSIS_AGDI.dll("CMSIS-DAP Debugger")
TDRV13=BIN\DbgFM.DLL("Fast Models Debugger")
TDRV14=PEMicro\Pemicro_ArmCortexInterface.dll("PEMicro Debugger")
RTOS0=Dummy.DLL("Dummy")
RTOS1=VARTXARM.DLL ("RTX Kernel")
ARMCCPATH0="ARMCC" ("V5.06u1 (build 61)")
DELDRVPKG0=ULINK\UninstallULINK.exe("ULINK Pro Driver V1.0")
[C51]
PATH="C:\Keil_v5\C51\"
SN=K1DZP-5IUSH-A01UE
VERSION=V9.01
BOOK0="HLP\RELEASE_NOTES.HTM" ("Release Notes",GEN)
BOOK1="HLP\GS51.PDF" ("uVision2 Getting Started",GEN)
BOOK2="HLP\C51.PDF" ("C51 User's Guide",GEN)
BOOK3="HLP\C51LIB.CHM" ("C51 Library Functions",C)
BOOK4="HLP\A51.PDF" ("Assembler/Utilities",GEN)
BOOK5="HLP\TR51.CHM" ("RTX51 Tiny User's Guide",GEN)
BOOK6="HLP\DBG51.CHM" ("uVision2 Debug Commands",GEN)
BOOK7="HLP\ISD51.CHM" ("ISD51 In System Debugger",GEN)
BOOK8="HLP\FlashMon51.CHM" ("Flash Monitor",GEN)
BOOK9="MON390\MON390.HTM" ("MON390: Dallas Contiguous Mode Monitor",GEN)
TDRV0=BIN\MON51.DLL ("Keil Monitor-51 Driver")
TDRV1=BIN\ISD51.DLL ("Keil ISD51 In-System Debugger")
TDRV2=BIN\MON390.DLL ("MON390: Dallas Contiguous Mode")
TDRV3=BIN\LPC2EMP.DLL ("LPC900 EPM Emulator/Programmer")
TDRV4=BIN\UL2UPSD.DLL ("ST-uPSD ULINK Driver")
RTOS1=RTXTINY.DLL ("RTX-51 Tiny")
RTOS2=RTX51.DLL ("RTX-51 Full")
LIC0=GM82Z-JH0EN-4FUI9-4DQIL-PR173-UQXMT
TDRV5=BIN\STCMON51.DLL ("STC Monitor-51 Driver")

3.添加STC51系列头文件:

打开STC-ISP软件,选择Keil仿真设置,添加头文件到Keil中,选择MDK5安装路径添加。


重新打开c51程序文件,大功告成。


你可能感兴趣的:(MDK5兼容c51方法)