How to Change the Compiler in Keil MDK?

Follow+Star Public Account, don’t miss out on wonderful content

How to Change the Compiler in Keil MDK?

Author | strongerHuang

WeChat Public Account | strongerHuang

Some readers do not want to change the version of Keil MDK but wish to upgrade to a higher version of the compiler.

For example: using Keil MDK version V5.32, the default compiler version is V6.14.1. If I want to use the V6.15 version compiler, what should I do?

How to Change the Compiler in Keil MDK?

Now let’s talk about how to upgrade the compiler in Keil MDK to the latest compiler (switch to a specified version of the compiler):

  • Download ARM Compiler

  • Install ARM Compiler

  • Configure Compiler in Keil

Download ARM Compiler

It is not necessary to use the latest compiler; we can also use older versions. The official site currently provides historical versions for download.

Download link for Arm Compiler 6:
https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6
(Public account does not support external links, please copy the link to open in the browser)

How to Change the Compiler in Keil MDK?

Download link for Arm Compiler 4 and 5:
https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/legacy-compilers

How to Change the Compiler in Keil MDK?How to Change the Compiler in Keil MDK?

Downloading through the browser’s built-in downloader may be slow; it is recommended to use Thunder, as many have mirrors, which are relatively faster.

Install ARM Compiler

Before installation, it is important to note that depending on your Keil MDK version, there may be compatibility issues with the supported compilers. For example, if MDK is version V4, it is recommended to download the 32-bit version.

Here, I will take ARM Compiler Windows 64-bit as an example; the installation process is quite straightforward, basically just click “next” all the way through.

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

It is recommended to modify the path here:

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

After installation is complete, there will be relevant documentation available for review:

How to Change the Compiler in Keil MDK?

Configure Compiler in Keil

There are many configuration options in Keil MDK; I recommend that everyone read my Keil Series Tutorial.

1. Open Project Management and enter the “Folders/Extensions” option bar
You can enter through the menu: Project -> Manage -> Project items.
You can also enter through the toolbar Project Management shortcut icon:

How to Change the Compiler in Keil MDK?

2. Modify (add) compiler

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

3. Select compiler for the project
After adding the compiler, you can select the new compiler in the project configuration:

How to Change the Compiler in Keil MDK?

At this point, you can use it normally just like before.
———— END ————
How to Change the Compiler in Keil MDK?

● Column “Embedded Tools”

● Column “Embedded Development”

● Column “Keil Tutorials”

● Selected Tutorials in Embedded Column

Follow the public account reply “Join Group” to join the technical exchange group according to the rules, reply “1024” to see more content.

How to Change the Compiler in Keil MDK?

How to Change the Compiler in Keil MDK?

Click “Read Original” to see more shares.

Leave a Comment