Keil5 tutorial

Publisher:BlossomSunriseLatest update time:2020-05-20 Source: eefocusKeywords:keil5 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Create a project

  First, create a folder on the desktop, then open KEIL5 and select: project->new μVision project->select the created folder and name it->select the main control chip model->OK


  When selecting the chip model, if it is a 51 chip, select the generic type under Generic. If it is a 32 microcontroller, it is not recommended to create a project yourself, you can directly use the project template.

insert image description here

2. Create a project folder

insert image description here

  Here you can create folders and add subsequent program files. You can rename the folder by double-clicking the folder name. I believe you can understand the other symbols for creation, deletion, and moving up and down.


Notice:

  The folders created here will only be displayed in the software and will not be created in the folder on the desktop for you, so you need to manually create the corresponding folder in the desktop folder.

insert image description here

3. Create a file

Select the toolbar: File->new (or directly click the blank file under File)->Save->Select the User folder and save the file name as main.c

insert image description here

The creation method of library files (.h) is the same, pay attention to the suffix.


3.1 Add files to the project

insert image description here

3.2 Add file path

  If you don't add the file path, the software will not be able to find the file.

insert image description here

As long as it is a folder that can be seen in the software, it should have a path.

insert image description here

4. Generate machine-readable HEX file

insert image description here

5. Chinese comments are garbled

insert image description here

insert image description here

Other editing settings can also be configured according to this picture: change the tab key to 4 spaces, display code line numbers, etc.


6. Import the downloaded chip package

insert image description here

Select File->Import->Select the chip package to be added

insert image description here

Keywords:keil5 Reference address:Keil5 tutorial

Previous article:51 MCU Project Creation Operation Process
Next article:51 MCU Basics: KeilC51 New Project [1]

Recommended ReadingLatest update time:2024-11-15 14:50

PIC32MZ tutorial -- OC Interrupt
  In my previous blog "PIC32MZ tutorial -- Output Compare", I shows how to apply Output Compare without interrupt to generate PWM signal. I also tried the Output Compare interrupt. I selected OC to be PWM mode without fault pin (OCM = "110") and enable its interrupt. Below is the initialization of OC. void OC1_Init(
[Microcontroller]
Keil5 tutorial
1. Create a project   First, create a folder on the desktop, then open KEIL5 and select: project- new μVision project- select the created folder and name it- select the main control chip model- OK   When selecting the chip model, if it is a 51 chip, select the generic type under Generic. If it is a 32 microcontrolle
[Microcontroller]
Keil5 tutorial
stm32 in Keil5 debugging prompt: uvision IDE has stopped working
1 http://blog.csdn.net/qq_33259138/article/details/70224581 The phenomenon is that there is no problem in compiling and downloading the program, but after starting Debug, as soon as entering the C source code file, it crashes immediately. I found a solution on the forum. Copy your project, send it to a short path
[Microcontroller]
stm32 in Keil5 debugging prompt: uvision IDE has stopped working
How to migrate KEIL4 project to KEIL5 program
Due to the differences between KEIL4 and KEIL5 programs, KEIL5 cannot directly open KEIL4 projects. However, in order to ensure the downward compatibility of KEIL5, ARM provides us with two ways to be compatible with KEIL4 programs. First, we use keil5 to open the keil4 project, and the following window will pop up.
[Microcontroller]
How to migrate KEIL4 project to KEIL5 program
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号