记录一个坑关于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的地址就好了。

相关推荐
Zyed7 小时前
[STM32]Day9-Part1USART+串口接收+串口收发
stm32·单片机·嵌入式硬件
小慧10249 小时前
手动建立工程模板
stm32·单片机
嵌入式ZYXC9 小时前
STM32烧录一次后无法再次烧录的两种原因
stm32·单片机·嵌入式硬件
开发笔记-阿牛12 小时前
CK6159A 可靠性测评:芯片工艺、环境测试与量产稳定性分析
stm32·单片机·嵌入式硬件
嵌入式ZYXC12 小时前
第8篇:《面试题:模拟地和数字地为什么要分开?怎么接?》
stm32·单片机·嵌入式硬件·面试·职场和发展
头枝12 小时前
ARM Cortex-M DWT CYCCNT 必须显式初始化,jlink调试时正常,使用时异常的问题
arm开发·stm32·单片机·问题·cyccnt
一目Leizi12 小时前
通信协议完全指南
stm32·单片机·嵌入式硬件
Zyed13 小时前
[STM32]Day11-Part2硬件实现SPI读写W25Q64
stm32·单片机·嵌入式硬件
渡码桑13 小时前
STM32 TinyML实战2026:3步在单片机上跑通AI推理——从TensorFlow到Edge Impulse的嵌入式进化
人工智能·stm32·单片机
HAPPY酷13 小时前
软件模拟 I2C vs 硬件 I2C:核心异同与工程选型指南
stm32·单片机·嵌入式硬件·物联网·microsoft