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

相关推荐
嵌入式小李9 小时前
stm32项目(25)——基于stm32的植物生长箱环境监测系统
stm32·单片机·嵌入式硬件
小林学习中12 小时前
三子棋装置(电赛24E题)K230/STM32全开源
stm32·mcu
郭郭的柳柳在学FPGA13 小时前
STM32 APP跳转后无法进入中断
javascript·stm32·嵌入式硬件
sjh210015 小时前
STM32的计数模式和pwm模式
java·stm32·算法
写点什么呢1 天前
Stlink识别不到-安装驱动
stm32·单片机·嵌入式硬件·学习
安庆平.Я2 天前
STM32——时钟系统
stm32·单片机·嵌入式硬件
机器视觉知识推荐、就业指导2 天前
STM32 外设驱动模块四:光敏电阻(LDR) 模块
stm32·单片机·嵌入式硬件
Hello_Embed2 天前
STM32HAL 快速入门(三):从 HAL 函数到寄存器操作 —— 理解 HAL 库的本质
c语言·stm32·单片机·嵌入式硬件·学习
学不动CV了2 天前
FreeRTOS入门知识(初识RTOS任务调度)(三)
c语言·arm开发·stm32·单片机·物联网·算法·51单片机
学习嵌入式的王饱饱2 天前
STM32HAL库 -- 10.DMA外设实战(UART串口+DMA读取传感器数据)
stm32·单片机·dma·uart·hal库