微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 怎样让Keil软件同时兼容51单片机和ARM单片机的问题

怎样让Keil软件同时兼容51单片机和ARM单片机的问题

时间:11-30 来源:互联网 点击:

[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


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
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")
RTOS0=Dummy.DLL("Dummy")
RTOS1=ARTXARM.DLL ("RTX Kernel")
[KARM]
PATH="D:KeilARM"
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
BOOK0=HLPRELEASE_NOTES.HTM("Release Notes")
BOOK1=HLPRL_RELEASE_NOTES.HTM("RTL-ARM Release Notes")
BOOK2=HLPARMTOOLS.chm("Complete Users Guide Selection", C)
BOOK3=HLPRVI.chm("RV Compiler Introduction")
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("Luminary Eval Board")
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")
RTOS0=Dummy.DLL("Dummy")
RTOS1=ARTXARM.DLL ("RTX Kernel")
此时可以发现,当我们打开KEIL的时候,里面有了ARM的头文件,也有51的头文件了,^-^ .
接下来先别高兴,还有一个步骤
要做,那就是分别给ARM和51注册库了。具体是打开安装好的KEIL,在FILE->license Managetment
点PK51 prof.Develpors Kit,复制 CID。接着打开ADK软件里面的注册机,如下


粘贴到CID里面,,TARGET选择51,如果是注册ARM就选择ARM,然后点GENERATE,会在上面横条那生成一串注册码,复制,粘贴到上图LicenseManagetment的New License IdCODE,并点后期ADD LIC即可。
因为注册ARM跟Keil C51的注册一样,就不累赘了。注册完成后效果如下:


可以看到51和ARM都已经注册完成,时间可以使用的时候是到2020年的六月和九月。至此我们的KEIL软件可以兼容51和ARM单片机了。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top