记录一个坑关于STM32 ARM Compiler Version

在用 Keil 进行 STM32 开发的时候,一开始下载,下载的 ARM 编译器是 Version6,他就不兼容老的代码,就很抽象。

所以必须要更换编译器。

可以去官网下载编译器 Downloads - Arm Developer ,也可以自己找资源哈(百度网盘 请输入提取码

那编译器下载好后,要注意安装的地址,一定要在keil5安装的 ARM 目录下,不然会报License错误。

例如:

复制代码
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:\soft\arm-compiler-Version5\sw\mappings
 - Toolchain location: C:\soft\arm-compiler-Version5\Bin
 - Selected tool variant: product
 - Checkout feature: compiler5
 - Feature version: 5.0202006
 - Flex error code: -1
Product: ARM Compiler 5.06
Component: ARM Compiler 5.06 update 7 (build 960)
Tool: ArmCC [4d365d]
".\Objects\Project.axf" - 28 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

后面就是添加编译器了

选择安装的编译器version5的地址就好了。

相关推荐
星一工作室1 小时前
STM32项目分享:基于stm32单片机控制的自动翻书装置
stm32·单片机·mongodb
小李做物联网1 小时前
【物联网毕设】76.1单片机stm32菊类智能养护物联网嵌入式项目程序系统开发
stm32·单片机·嵌入式硬件·物联网
Meraki.Zhang1 小时前
【STM32】:STM32CubeIDE 的使用
stm32·单片机·cubeide
heisd_12 小时前
嵌入式设备里面写文件通过外部 Flash 来进行
stm32·单片机
小柯博客2 小时前
从零开始打造 OpenSTLinux 6.6 Yocto 系统 - STM32MP2(基于STM32CubeMX)(五)
stm32·单片机·嵌入式硬件
Darken033 小时前
基于单片机STM32的---EXTI外部中断(理论部分)
stm32·单片机·嵌入式硬件·中断系统
IT阳晨。3 小时前
【STM32】矩阵键盘门禁项目(详细注释版)
stm32·嵌入式硬件
沉在嵌入式的鱼4 小时前
STM32--编码器(E6B2-CWZ1X)
stm32·单片机·嵌入式硬件·编码器·e6b2-cwz1x
bai5459364 小时前
STM32 PWM驱动电机
stm32·单片机·嵌入式硬件
周周记笔记16 小时前
【元器件专题】理解电容的频率特性(八)
硬件