在keil 4中添加stc系列芯片的方法:
1、从官网下载uv3.cdb的文件
网址是:
http://www.stcmcu.com/
2、下载好后把uv3.cdb文件改成STC.cdb;
3、 然后将【STC.cdb】放入【keil4】--【UV4】中;
4、有些 keil 4 可能只有【ARM】和【UV4】这两个文件夹,那么我们之前安装过 keil 3 的朋友里面找到【c51】的文件夹将其复制到
【keil 4】中,于此同时,下面这一步是很重要的,最好备份一下你的【TOOLS.INI】文件,
[UV2]
CDB0=UV4\STC.CDB("STC")
ORGANIZATION="Microsoft"
NAME="sky", "sky"
ARMSEL=1
BOOK0=UV4\RELEASE_NOTES.HTM("uVision Release Notes",GEN)
BOOK0=UV2\RELEASE_NOTES.HTM("uVision2 Release Notes")
BOOK1=UV2\UV2.HLP("uVision2 User's Guide")
ARMUSE=0
rem ARMUSE= 0:=Cygnus/GNU, 1:=ARM-ADS, 2:=Keil (future)
Version=V2.2
ORGANIZATION="Microsoft"
NAME="Microsoft SKY"
[C166]
BOOK0=HLP\Release_Notes.htm("Release Notes",GEN)
BOOK1=HLP\License.htm("Enter License ID")
BOOK2=HLP\C166TOOLS.chm("Complete User's Guide Selection", C)
BOOK3=HLP\UV3.chm("uVision3 User's Guide")
BOOK4=HLP\GS166.PDF("uVision2 Getting Started (PDF)")
BOOK5=HLP\C166.PDF("C166 User's Guide (PDF)")
BOOK6=HLP\A166.PDF("A166 & Utilities User's Guide (PDF)")
TDRV0=MONITOR\MON166.DLL ("Keil Monitor-166 Driver")
TDRV1=OCDS\CBC166.DLL ("OCDS Driver for C16xU/H/UTAH")
TDRV2=OCDS\OCDSXC.DLL ("OCDS Driver for XC16x")
RTOS1=ARTX166.DLL ("Advanced RTX-166")
RTOS2=RTXTINY.DLL ("RTX-166 Tiny")
RTOS3=RTXFULL.DLL ("RTX-166 Full")
Version=V4.2
[C51]
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes")
BOOK1=HLP\GS51.PDF("uVision2 Getting Started")
BOOK2=HLP\C51.PDF("C51 User's Guide")
BOOK3=HLP\C51LIB.CHM("C51 Library Functions",C)
BOOK4=HLP\A51.PDF("Assembler/Utilities")
BOOK5=HLP\TR51.CHM("RTX51 Tiny User's Guide")
BOOK6=HLP\DBG51.CHM("uVision2 Debug Commands")
BOOK7=HLP\ISD51.CHM("ISD51 In System Debugger")
BOOK8=HLP\FlashMon51.CHM("Flash Monitor")
BOOK9=MON390\MON390.HTM("MON390: Dallas Contiguous Mode Monitor")
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")
Version=V7.0
PATH="D:\Keil\C51"
SN=K1DZP-5IUSH-A01UE
[C251]
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes")
BOOK1=HLP\GS51.PDF("uVision2 Getting Started")
BOOK2=HLP\C251.PDF("C251 User's Guide")
BOOK3=HLP\C251LIB.CHM("C251 Library Functions",C)
BOOK4=HLP\A51.PDF("Assembler/Utilities")
BOOK5=HLP\DBG251.CHM("uVision2 Debug Commands")
TDRV0=BIN\MON251.DLL ("Keil Monitor-251 Driver")
Version=V3.5
[ARM]
PATH="d:\Keil 4\ARM\"
VERSION=4.12
PATH1="C:\Program Files\CodeSourcery\Sourcery 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
CPUDLL2=SARMCR4.DLL(TDRV7) # Drivers for Cortex-R4 devices
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes",GEN)
BOOK1=HLP\ARMTOOLS.chm("Complete User's Guide Selection",C)
BOOK2=HLP\RL_RELEASE_NOTES.HTM("RTL-ARM Release Notes",GEN)
BOOK3=HLP\RVI.chm("RV Compiler Introduction",GEN)
BOOK4=C:\Program Files\CodeSourcery\Sourcery G++ Lite\share\doc\arm-2007q3-53-arm-none-eabi\pdf\gcc\gcc.pdf("GNU C Compiler",GEN)
BOOK5=C:\Program Files\CodeSourcery\Sourcery G++ Lite\share\doc\arm-2007q3-53-arm-none-eabi\pdf\as.pdf("GNU Assembler",GEN)
BOOK6=C:\Program Files\CodeSourcery\Sourcery G++ Lite\share\doc\arm-2007q3-53-arm-none-eabi\pdf\ld.pdf("GNU Linker",GEN)
BOOK7=C:\Program Files\CodeSourcery\Sourcery G++ Lite\share\doc\arm-2007q3-53-arm-none-eabi\pdf\binutils.pdf("GNU Binary Utilities",GEN)
BOOK8=Signum\Docs\SigUV3Arm.htm("Signum Systems JTAGjet Driver Documentation",GEN)
TDRV0=BIN\UL2ARM.DLL("ULINK ARM Debugger")
TDRV1=BIN\UL2CM3.DLL("ULINK Cortex Debugger")
TDRV2=BIN\AGDIRDI.DLL("RDI Interface Driver")
TDRV3=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV4=BIN\lmidk-agdi.dll("Stellaris ICDI")
TDRV5=Signum\SigUV3Arm.dll("Signum Systems JTAGjet")
TDRV6=Segger\JLTAgdi.dll("J-LINK / J-TRACE")
TDRV7=Segger\JL2CM3.dll("Cortex-M/R J-LINK/J-Trace")
TDRV8=STLink\ST-LINKIII-KEIL.dll ("ST-Link Debugger")
TDRV9=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
TDRV10=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
LIC0=IK112-97SIM-W2TLL-0CM2L-0YQSZ-CCVWH
[ARMADS]
PATH="d:\Keil 4\ARM\"
PATH1="BIN40\"
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
CPUDLL2=SARMCR4.DLL(TDRV7) # Drivers for Cortex-R4 devices
BOOK0=HLP\RELEASE_NOTES.HTM("Release Notes",GEN)
BOOK1=HLP\ARMTOOLS.chm("Complete User's Guide Selection",C)
BOOK2=HLP\RL_RELEASE_NOTES.HTM("RTL-ARM Release Notes",GEN)
BOOK3=HLP\RVI.chm("RV Compiler Introduction",GEN)
BOOK4=Signum\Docs\SigUV3Arm.htm("Signum Systems JTAGjet Driver Documentation",GEN)
TDRV0=BIN\UL2ARM.DLL("ULINK ARM Debugger")
TDRV1=BIN\UL2CM3.DLL("ULINK Cortex Debugger")
TDRV2=BIN\AGDIRDI.DLL("RDI Interface Driver")
TDRV3=BIN\ABLSTCM.dll("Altera Blaster Cortex Debugger")
TDRV4=BIN\lmidk-agdi.dll("Stellaris ICDI")
TDRV5=Signum\SigUV3Arm.dll("Signum Systems JTAGjet")
TDRV6=Segger\JLTAgdi.dll("J-LINK / J-TRACE")
TDRV7=Segger\JL2CM3.dll("Cortex-M/R J-LINK/J-Trace")
TDRV8=STLink\ST-LINKIII-KEIL.dll ("ST-Link Debugger")
TDRV9=BIN\ULP2CM3.DLL("ULINK Pro Cortex Debugger")
TDRV10=BIN\ULP2ARM.DLL("ULINK Pro ARM Debugger")
RTOS0=Dummy.DLL("Dummy")
RTOS1=VARTXARM.DLL ("RTX Kernel")
红色字体是keil3中的TOOLS.INI文件里面的部分内容,将其复制到keil4中的TOOLS.INI中即可,这是一个引导文件,所以才需要如此复制
蓝色字体是你自己要输入的,必须在【UV2】下面一行输入,那是你添加的STC.cdb文件的地址
5、做好之后你就会在建立工程的时候发现
有一个STC的选项,选中之后就可以用STC的芯片了
以上纯属个人经验,亲自测试过可用,欢迎大家互相分享技术经验,谢谢