可以使用最新的Keil MDK版本(v5.37)构建可以构建

发布于 2025-02-04 09:04:46 字数 8711 浏览 2 评论 0原文

全部: 我将KEIL MDK版本更新为最新版本的V5.37,然后发现该项目无法构建。 由于v5.37不支持编译器5并将默认编译器设置为编译器6,因此我使用独立的补丁安装了编译器5(ARM编译器版本5,v5.06 Update7)。然后将编译器5添加到KEIL中,将编译器5设置为默认编译器,但是Keil无法构建项目,按以下方式构建输出:

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin'
Build target 'LED'
assembling startup_stm32f40_41xxx.s...
startup_stm32f40_41xxx.s: Error: A9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
startup_stm32f40_41xxx.s: Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
startup_stm32f40_41xxx.s:  - ARMLMD_LICENSE_FILE: unset
startup_stm32f40_41xxx.s:  - LM_LICENSE_FILE: unset
startup_stm32f40_41xxx.s:  - ARM_TOOL_VARIANT: unset
startup_stm32f40_41xxx.s:  - ARM_PRODUCT_PATH: unset
startup_stm32f40_41xxx.s:  - Product location: product not found
startup_stm32f40_41xxx.s:  - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
startup_stm32f40_41xxx.s:  - Selected tool variant: mdk_lite
startup_stm32f40_41xxx.s: Product: unknown
startup_stm32f40_41xxx.s: Component: ARM Compiler 5.06 update 7 (build 960)
startup_stm32f40_41xxx.s: Tool: ArmAsm [4d35fa]
compiling delay.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling main.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_syscfg.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling usart.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling sys.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_rcc.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_usart.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling led.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling misc.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling system_stm32f4xx.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_gpio.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_it.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
"..\OBJ\LED.axf" - 13 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

形式的构建输出意味着Keil许可证是不正确的。但是我尝试了每种类型的许可证代码Keygen和所有这些许可证都是失败的。

那么,是否有人遇到与我的问题相同的问题?还有任何解决方案或建议吗? 非常感谢。

all:
I updated my keil MDK version to the latest which is V5.37,and then I found that the project can't build anymore.
since the V5.37 do not support the compiler 5 and set the default compiler to compiler 6,I installed the compiler 5(Arm compiler version 5 ,V5.06 update7) with a independent patch.and then add the compiler 5 to the keil,set the compiler 5 as the default compiler,but keil can't build the project,build output as follows:

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin'
Build target 'LED'
assembling startup_stm32f40_41xxx.s...
startup_stm32f40_41xxx.s: Error: A9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
startup_stm32f40_41xxx.s: Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
startup_stm32f40_41xxx.s:  - ARMLMD_LICENSE_FILE: unset
startup_stm32f40_41xxx.s:  - LM_LICENSE_FILE: unset
startup_stm32f40_41xxx.s:  - ARM_TOOL_VARIANT: unset
startup_stm32f40_41xxx.s:  - ARM_PRODUCT_PATH: unset
startup_stm32f40_41xxx.s:  - Product location: product not found
startup_stm32f40_41xxx.s:  - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
startup_stm32f40_41xxx.s:  - Selected tool variant: mdk_lite
startup_stm32f40_41xxx.s: Product: unknown
startup_stm32f40_41xxx.s: Component: ARM Compiler 5.06 update 7 (build 960)
startup_stm32f40_41xxx.s: Tool: ArmAsm [4d35fa]
compiling delay.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling main.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_syscfg.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling usart.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling sys.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_rcc.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_usart.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling led.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling misc.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling system_stm32f4xx.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_gpio.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
compiling stm32f4xx_it.c...
Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.
Check that your license details are correct in the License Management dialog of MDK. Additional information is available at:
 If you need further help, provide this complete error report to your supplier
 - ARMLMD_LICENSE_FILE: unset
 - LM_LICENSE_FILE: unset
 - ARM_TOOL_VARIANT: unset
 - ARM_PRODUCT_PATH: unset
 - Product location: product not found
 - Toolchain location: C:\_AnZhuang\keil\Keil\ARMCCv506u7\Bin
 - Selected tool variant: mdk_lite
Product: unknown
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
"..\OBJ\LED.axf" - 13 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

form the build output it means the keil license is incorrent.But I've tried every type license code which are generated by the keygen and all of these license are faild.

so, is there anybody have the same issue as mine? and any solutions or advices to try?
many thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

魂归处 2025-02-11 09:04:46

我遇到了相同的问题,试图在环境变量中定义路径,将其安装在不同的目录中...;他们都没有工作。

最终,在他们自己的文档上面对此页面:
https://developer.arm.arm.com/arm.com/documentation/ka005073/ka005073/1-1--1--1--1--1--1-1--1--1--1-1--1--1-1--1--1--1-1--1--1--1--1-1--1--1--1--1--1-1--1--1-1--1-1--1-1--1--1--1-1--1-1--1-1--1-1--1--1--1-1--1-1--1-1--1- 0/?lang = en

尝试在此路径中安装ARM编译器V5:
[keil安装路径] \ arm \ arm_compiler_5.06u7

对我来说是:
C:\ keil_v5 \ arm \ arm_compiler_5.06U7

,然后将路径添加到Keil的ARMCC路径上:
keil armcc路径:添加编译器

I had the same problem, tried to define the path in the environment variable, installing it in different directories,...; None of them worked.

Eventually, faced this page on their own documentation:
https://developer.arm.com/documentation/ka005073/1-0/?lang=en

Try to install the ARM compiler V5 in this path:
[Keil installation path]\ARM\ARM_Compiler_5.06u7

For me it's:
C:\Keil_v5\ARM\ARM_Compiler_5.06u7

Then add the path to Keil's ArmCC Path like this:
Keil ArmCC Path: add compiler

旧时光的容颜 2025-02-11 09:04:46

https://develoveler.arm.com/documenter.arm.com/documentation/ka005073/ka005073/latest

您不应将编译器安装到默认目录。

https://developer.arm.com/documentation/ka005073/latest

Here it says you should not install the compiler to the default directory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文