【问题标题】:can't build with the latest keil MDK version(V5.37)无法使用最新的keil MDK版本(V5.37)构建
【发布时间】:2022-07-08 23:50:16
【问题描述】:

全部: 我将我的keil MDK版本更新到最新版本是V5.37,然后我发现该项目无法再构建了。 由于V5.37不支持编译器5,并且将默认编译器设置为编译器6,所以我安装了编译器5(Arm编译器版本5,V5.06更新7),带有独立补丁。然后将编译器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 生成的每种类型的许可证代码,所有这些许可证都失败了。

那么,有没有人和我一样的问题?以及尝试的任何解决方案或建议? 非常感谢。

【问题讨论】:

    标签: c arm keil


    【解决方案1】:

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

    这里说你不应该将编译器安装到默认目录。

    【讨论】:

      【解决方案2】:

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

      最终,在他们自己的文档中遇到了这个页面: https://developer.arm.com/documentation/ka005073/1-0/?lang=en

      尝试在这个路径下安装ARM编译器V5: 【Keil安装路径】\ARM\ARM_Compiler_5.06u7

      对我来说是: C:\Keil_v5\ARM\ARM_Compiler_5.06u7

      然后将路径添加到 Keil 的 ArmCC Path 中,如下所示: Keil ArmCC Path: add compiler

      【讨论】:

        最近更新 更多