[Q&A] Install Keil MDK v5.37 (or later versions) to compile example in BSP results in errors.

Post Reply
morgandu
Posts: 45
Joined: 28 Apr 2017, 22:47

18 Aug 2023, 11:15

[English] Install Keil MDK v5.37 (or later versions) to compile example in BSP results in errors. How to solve it?
[中文] 安裝 Keil MDK v5.37 (或之後的版本) 在編譯 BSP 裡的範例會發生錯誤. 要如何解決?

[English]
Starting from Keil MDK v5.37, Arm removed Arm Compiler v5 and only keeps Arm Compiler v6. These two compiler versions have some incompatible usages. Examples in the BSP and some third-party open-source code were developed using Arm Compiler v5. Compiling with Arm Compiler v6 can result in errors.

Arm offers a standalone installation of Arm Compiler v5. Please follow the instructions on the webpage to download and install Arm Compiler v5 (ARMCompiler_506_Windows_x86_b960.zip).

If Keil MDK is installed in the directory "C:\Keil_v5", it's recommended to change the installation directory for Arm Compiler v5 to "C:\Keil_v5\ARM\ARMCC". After completion, reopen the example with Keil MDK to compile without errors.

[中文]
從 Keil MDK v5.37 版本起,Arm 移除 Arm Compiler v5, 只留 Arm Compiler v6. 兩個版本編譯器有些用法不相容。BSP 包裡的範例和一些第三方的開源原始碼是用 Arm Compiler v5 開發,使用 Arm Compiler v6 編譯會發生錯誤。

Arm 提供 Arm Compiler v5 獨立安裝方式,請按照網頁的說明,下載和安裝 Arm Compiler v5 (ARMCompiler_506_Windows_x86_b960.zip).

如果 Keil MDK 安裝的目錄是 “C:\Keil_v5”, 建議 Arm Compiler v5 的安裝目錄改成 “C:\Keil_v5\ARM\ARMCC”. 完成後,重新用 Keil MDK 開啟範例即可編譯無誤。

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests