Keil (C51) introduction, download, installation and 2 patches

Keil 5 is commonly used in two versions, C51 and MDK. C51 is used to compile the single-chip microcomputer program of 8051 core, such as AT89C51, STC89C51, STC98C52 and so on. MDK is used to compile STM32, GD32 and other ARM32-bit core microcontroller programs.

1. Resource acquisition

Obtain from Keil official website, the network is slow, not recommended: Keil Product Downloads

As of December 2022, the latest version is V9.61

(The official Keil has four versions, here is the C51 version as an example)

1. Open the above link, click "C51" as shown below:

2. Fill in the information (if you find it troublesome, you can download it by Baidu in other ways), go to the bottom of the page and click "Submit" to submit:

3. Click "C51V956.EXE", select the save path, and click "Download":

2. Software installation

The installation of the Keil C51 integrated development environment is relatively simple (basically, it is all the way to Next). Let’s talk about it according to the regular installation tutorial (screenshot), taking the “C51V961.exe” software downloaded above as an example.

1. Find the installation package, right-click after selecting it, and select [ Run as administrator ]

2 , click "Next"

3. Check the user agreement and click "Next"

4 , [Choose the installation location] (can be default), it is better to choose [D disk]

5. Fill in the user information (you can fill in whatever you want)

6. During the installation, give him some time, turn the angle of view, look around, and it will be fine in a while. (within five minutes)

7 , you don’t need to check it, it’s okay if you check it.

8. A shortcut to the software will be generated on the desktop

9. Click the software shortcut and enter the main interface of the software

10. The programming interface of the software will be a frequent visitor in the future. Just take a look, cross the upper right corner

Keil5 can be localized, but it is not necessary. Many "sinicization" are not standardized, but will cause misunderstandings and mistakes.

So far, the Keil C51 has been installed and can be used in new projects. But in order not to be limited by the compiled code size and user experience, you need to purchase a license or register.

Three, software registration ( cracking ) - slightly

Keil C51 is a paid software, and the official crackdown on piracy is relatively strict. If you are using it for commercial purposes, it is recommended to buy genuine software.

...slightly...

4. Add the STC chip package to keil5

Many friends who use STC microcontroller development should know that after installing Keil C51, when selecting chips for new projects, there is no STC microcontroller model. As shown below:

To make the STC MCU model available here, you need to add an STC patch.

Open the official website of STC: STC: 32-bit 8051 single-chip microcomputer innovator, ISP/IAP technology innovator, China Promise: We have nowhere to go except victory, download the latest version of STC-ISP download editing software, as shown below

Double-click to run STC-ISP. In the software interface, find the Keil simulation setting tab in the figure and click it. You can see that there is an add model and header file to Keil..., we click this button, as shown below

In the pop-up file selection window, we find the Keil installation directory and click, and then click OK, as shown in the figure below (my keil installation directory is C:\Keil_v5)

If the path is correct, there should be a prompt that the STC MCU model is added successfully, as shown in the figure below

Open KEIL5, select a new project, and the Select Device for Target window will pop up automatically, click the inverted triangle drop-down list, select STC MCU Database, and the STC MCU model will appear in the MCU list below, select the corresponding model, and then click OK That's it.

At this point, we can normally choose the STC microcontroller for software development.

V. 5.1 MCU serial port output some garbled Chinese characters repair patch (support all keil versions)

Put the software [KeilFDfix (FD Patch Guanming Classmate Edition) b10.exe] to the folder where KEIL's compiler [C51.EXE and A51.EXE] is located (for example: C:\KEIL_V5\C51\BIN), after running the software Press [Start] to automatically patch (replace 0x[80 FB FD] with [80 FB FF], ignore CX51.EXE and AX51.EXE). The specific operation is as follows:

1. Put the software [KeilFDfix (FD Patch Guanming Classmate Edition) b10.exe] to the folder where the KEIL compiler [C51.EXE and A51.EXE] is located (for example: C:\KEIL_V5\C51\BIN)

2. After placing the location, double-click the executable patch, and press [Start] to automatically apply the patch.

This tool is tested and generally supports all versions of Keil C51 u2/u3/u4/u5!

This patch fixes a bug in the C51 support package file. It solves the problem that some Chinese character serial ports output garbled characters, but there is no problem with English string port output. Only some Chinese characters, especially Chinese characters with many strokes, output garbled characters, which is related to this patch. The English serial port printout is all garbled characters, which is not in this range! ! !

Guess you like

Origin blog.csdn.net/xijinno1/article/details/131618001