原文链接:https://developer.arm.com/documentation/ka005073/1-0/?lang=en
文章 ID: KA005073
适用于: Keil MDK
机密性:客户非机密
本文中的信息适用于:
Keil MDK 5.37 及更新版本
Arm 编译器 5
问题
我已经安装了 Keil MDK 5.37(或更新版本)。现在,我想构建一个需要 Arm Compiler 5 的项目,但构建会导致以下结果之一:
由于使用 Arm Compiler for Embedded 6 构建项目,因为它是默认工具链,导致多个编译错误。
以下错误消息报告 Arm Compiler 5 不可用:
***Target ‘Debug’ uses ARM-Compiler ‘V5.06 update 7 (build 960)’ which is not available.
如何访问 Arm Compiler 5 来构建我的项目?
回答
虽然 Arm Compiler 5 是其支持的 Arm 目标的成熟且成熟的工具链,但它已停止支持,并且没有计划进一步更新。因此,从 Keil MDK 5.37 开始,它不再包含在安装中。
Arm Compiler 5 仍可用于:
现有项目。
针对旧版 Armv4、Armv5 或 Armv6 目标的新项目。
对于所有其他新项目,Arm 强烈建议您迁移到最新版本的Arm Compiler for Embedded或Arm Compiler for Embedded FuSa。
如果您需要使用 Arm Compiler 5 构建项目或无法迁移到 Arm Compiler for Embedded,则必须手动下载 Arm Compiler 5 并将其添加到 Keil MDK 安装中,如下所示:
打开Arm Compiler 下载索引并点击链接下载所需的 Arm Compiler 5 版本。
选择并下载 Windows 所需的软件包。
将工具链安装到ARMKeil MDK 安装目录的子目录中。例如,如果您的 Keil MDK 安装目录为C:\Keil_v5,则 Arm Compiler 5.06 update 7 的推荐安装路径为.C:\Keil_v5\ARM\ARM_Compiler_5.06u7
按照 Keil MDK 文档的管理 Arm 编译器版本部分中的步骤注册并添加已安装的 Arm Compiler 5 版本。
警告
不支持将工具链安装到其默认安装目录中,并且会导致工具在构建项目时报告以下错误:
Error: C9555E: Failed to check out a license
更多信息
更新 ARM 编译工具 - Keil 应用笔记 267
使用不同版本的 ARM 编译器
Arm Compiler for Embedded Migration and Compatibility Guide
也可以看看
UVISION:在同一台计算机上使用不同版本的 Keil IDE