Home  >  Article  >  Software Tutorial  >  How does Keil uVision 5 generate hex? How does Keil uVision 5 generate hex from keil engineering code?

How does Keil uVision 5 generate hex? How does Keil uVision 5 generate hex from keil engineering code?

WBOY
WBOYOriginal
2024-06-03 10:50:52643browse

How does Keil uVision 5 generate a hex file? This tutorial will introduce how to use Keil uVision 5 to compile Keil project code and generate hex files. A hex file is a common executable file format used for programming on microcontrollers or other embedded devices. Read on for step-by-step instructions and detailed guide to help you successfully generate hex files.

To open a written project, you can open it by double-clicking the project, or you can open it after finding the project in keil, Project-Open Project... on the menu bar

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法 Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

Click the menu Project--Options to File and enter the selection dialog box

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

In the Options for target dialog box, switch to the target column and enter the The actual frequency of the crystal oscillator you use

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

Switch to the output column and click Seclet Folder Objects to set the directory where the HEX file is generated. If not set, it defaults to the same directory as the source code

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

Switch to the output bar, check the Create HEX file option, and click OK

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

Click Compile, Build, and Rebuild in the toolbar , after prompting no warning error, you can see in the prompt creating hex file from ".obj****"... It means that the HEX file

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

has been generated and is finally in the directory You can see the generated HEX file in the obj folder

Keil uVision 5怎么生成hex Keil uVision 5将keil工程代码生成hex的方法

The above is the detailed content of How does Keil uVision 5 generate hex? How does Keil uVision 5 generate hex from keil engineering code?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn