Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Recently, a friend in the group asked the question: How can I use a higher version of the compiler?
This friend provided an image:
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
From the image above, it can be seen that the version of Keil MDK used by this friend is not the latest version.
So, how do I operate if I want to use the higher version V6.15 compiler?

Let’s talk about: How to upgrade the Keil MDK compiler to the latest version (switch to a specified version of the compiler):

  • Download the ARM compiler

  • Install the ARM compiler

  • Configure the compiler in Keil

  • Additional notes

1. Download the ARM Compiler

It is not necessary to use the latest version; 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

(Note: The public account does not support external links; please copy the link to open in a browser)

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Download link for Arm Compiler 4 and 5:

https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/legacy-compilers

(Note: The public account does not support external links; please copy the link to open in a browser)

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

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

2. Install the ARM Compiler

Before installation, it should be noted that depending on your version of Keil MDK, 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 the ARM compiler for Windows 64-bit as an example; the installation process is quite straightforward, basically just “next” all the way.

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

It is recommended to modify the installation path:

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

After installation, there will be relevant documentation; take a look:

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

3. Configure the Compiler in Keil

There are many configuration options in Keil MDK, and I recommend everyone to read my “Keil Series Tutorials”.

1. Open Project Management and enter the “Folders/Extensions” option

You can access it via the menu: Project -> Manage -> Project items.

You can also access it through the toolbar project management shortcut icon:

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

2. Modify (Add) the Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

3. Select the Compiler for the Project

After adding the compiler, you can select the newly added compiler in the project configuration:

Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

At this point, you can use it normally as usual.
4. Additional Notes
1. Compiler Registration
Whether it is Keil MDK or the ARM compiler, they are paid tools, which involves the registration issue. If you use the newly added ARM compiler directly according to the above steps, you may encounter the following error:
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
This means that registration has not been completed, and at this point, you will need to pay to purchase the genuine version.
For those who do not want to spend money on the genuine version, you will have to find a way yourself; do not say I provided the following method:
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
After correct registration, there will be no issues:
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
2. Changes in Project Options Configuration
If we select a different compiler, the project options in your Keil MDK may change:
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler
Of course, this change is also related to your MDK version (different versions may vary).
Step-by-Step Guide to Upgrade Keil MDK ARM Compiler

END

Source: strongerHuang
Copyright belongs to the original author. If there is an infringement, please contact for deletion.
Recommended Reading
Getting scolded for “two floating-point numbers being equal”
Kirun 9000s, not from SMIC, but…
Words that programmers are most likely to misread; I exploded when I heard status

→ Follow for updates ←

Leave a Comment