Keil Installation

Words 519
Views
Visitors

Timeline

Timeline

2025-01-31

init

2025-08-07

add tip warning

This article describes the installation methods and precautions for Keil C51 and MDK, including steps such as downloading the installation package from the official website, filling out a form, and choosing the installation path (recommended to install to the D drive). It also emphasizes that C51 should be installed before MDK. The article further explains how to obtain and configure the v5 compiler: since the official website no longer provides direct downloads, you need to extract the ARMCC compiler from an older version of Keil, unzip it to the specified directory, and add the ARM Compiler path in Keil via "File Extensions, Books and Environment...". In addition, the article notes that the v6 version of ARMCC works normally, while the v5 version may prompt that there is no license. It is recommended to find the v5 version of the MDK installation package or use VSCode plugins.

The latest version no longer works with the method below. The v6 version of ARMCC can be used normally, but the v5 version prompts that there is no license. It is recommended to find the v5 version of the MDK installation package to install, and for the v6 version, it is recommended to use the VSCode plugin.

C51 Installation

  1. First, go to the official website and click to download C51.

Here you will be asked to fill out a form. Just fill it in briefly, then click the downloaded exe installer to install.

  1. After entering the installation, just confirm all the way. When choosing the installation location, I chose to install to the D drive instead of the default C drive.

C51 installation location
C51 installation location

  1. Finally, click Finish to complete the installation successfully.

MDK Installation

Keil’s MDK and C51 can coexist, and the installation steps are similar.

  1. First, visit the official website to download the MDK installation package.
  1. After entering the installation, fill in the installation location like this, and change it according to the C51 installation location.

    MDK installation location
    MDK installation location

  2. Finally, click Finish to complete the installation successfully.

Note: You should install C51 first, then MDK. Do not reverse the order.

v5 Compiler

First, download the v5 compiler. Since the official website no longer seems to provide a direct download channel, you can only download an older version of Keil and extract the v5 compiler. Here is an already extracted compiler that you can download directly.

After downloading, unzip it to the D:\Keil_v5\ARM directory.

Compiler extraction directory
Compiler extraction directory

Open Keil, create a new project casually, then click this button.File Extensions, Books and Environment…

File Extensions, Books and Environment...
File Extensions, Books and Environment...

Then clickFolder/Extensions, clickUse ARM Compilerthe button next to it

Use ARM Compiler
Use ARM Compiler

Click the followingAdd another ARM Compiler Version to List, select the ARMCC path you just extracted

Add another ARM Compiler Version to List
Add another ARM Compiler Version to List

After saving, it is successful

References

Loading comments…