今年鼠年一到,各种不顺,先是新型冠状病毒从武汉肆虐袭来,回到公司打开keil一编译代码,我的个娘来,一堆错误,基本全是报如下错误:
mbed compile --source demo --source duer-os-light --source mbed-os -m UNO_91H -t ARM
Building project demo (UNO_91H, ARM)
Scan: demo
Scan: duer-os-light
Scan: mbed-os
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_LWIP
Scan: FEATURE_CONSOLE
Scan: FEATURE_GPADCKEY
Scan: FEATURE_SDCARD
Scan: mbed
Scan: env
Compile [ 16.7%]: device_controller.cpp
[ERROR] Error: C9555E: Failed to check out a license.
The license file could not be found. Check that ARMLMD_LICENSE_FILE is set correctly.
ARMLMD_LICENSE_FILE is not set. You must set this to the path to your license.
Information about this error is available at: http://ds.arm.com/support/lic87/m1
General licensing information is available at: http://ds.arm.com/support/licensing/
If you need further help, provide this complete error report to your supplier or license.support@arm.com.
- ARMLMD_LICENSE_FILE: unset
- LM_LICENSE_FILE: unset
- ARM_TOOL_VARIANT: unset
- ARM_PRODUCT_PATH: unset
- Product location: C:\Program Files\DS-5 v5.27.1\sw\mappings
- Toolchain location: C:\Program Files\DS-5 v5.27.1\sw\ARMCompiler5.06u5\bin
- Selected tool variant: product
- Checkout feature: compiler5
- Feature version: 5.0201701
- Flex error code: -1
Product: DS-5 Professional 5.27.1
Component: ARM Compiler 5.06 update 5 (build 528)
Tool: armcc [4d3621]
[mbed] ERROR: "c:\python27\python.exe" returned error code 1.
[mbed] ERROR: Command "c:\python27\python.exe -u D:\DuerOS\DuerOS-Light-SDK-v1.1.0\mbed-os\tools\make.py -t ARM -m UNO_91H --source demo --source duer-os-light --source
mbed-os --build .\BUILD\UNO_91H\ARM" in "D:\DuerOS\DuerOS-Light-SDK-v1.1.0"
ARM_TOOL_VARIANT: unset
xxx :unset
ToolChain :xxx
等等。
后来研究半小时发现,是因为最近Windows 10更新了一个版本,导致旧的Keil 5 的ARMCC编译工具链不再支持,
有2个解决办法:
法1:
更新MDK的编译工具链版本,
ARMCC的工具链版本到v6.10以后才行。
如下是下载最新的编译工具链地址:
https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6/6-10-1
该网站为国外网站,下载十分缓慢,不太好用。
法2:
下载最新的Keil版本,我使用的Keil-V5.28版本是不行的,下载Keil-V5.29就可以解决。
附上下载地址如下:
由于ARM的官网下载比较缓慢,而且还要求各种注册,所以我给提供了网盘的下载路径:
https://pan.baidu.com/s/1uDGALOthYV60q3vnSFCGqg
安装完最新的Keil V5.29 后再用注册机破解standard version的就可以完美解决掉问题了。
看完有帮助的小伙伴们麻烦点个赞哦!!