Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to download a separate Hex file to a single-chip microcomputer using Keil

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use Keil to download a separate Hex file to the microcontroller. The quality of the article is high, so Xiaobian shares it with you as a reference. I hope you have a certain understanding of relevant knowledge after reading this article.

preface

STM32 beginners, is through serial port 1 Hex file download into STM32, need a serial port module, but also set BOOT0 and BOOT1 level, and then download through FlyMcu software, this is also a good way, here I want to introduce is the use of JLink debugger and Keil MDK-ARM to download Hex files, no source code, only a debugger.

Tools and software needed

Hex files such as Demo_STM32.hex

Keil software, version v4 or v5, such as Keil v5.16a

ARM debugger, Jlink or ST-Link, such as Jlink v9

STM32 development board, e.g. STM32F103RET6

1. Prepare a complete project

Prepare a complete project. Note that the chip model of this project, the chip model of the development board, and the chip model corresponding to the Hex file must be consistent, otherwise there will be problems that cannot operate correctly. For example, STM32F103RET6.

2. Make sure Jlink has detected the chip.

As shown in the figure, first select the debugger type, and then click Setting. If the chip is connected, the ID number of the chip will be displayed on the right side.

3. Determine the output path of the Hex file for this project

Open the Output option in the project configuration interface, and you can see that the path where my project output file is stored is under the OBJ directory, and the name is NiceDay.

Open the OBJ directory and you can see that the hex file name generated by this project is NiceDay.hex

4. Put the Hex file to download under OBJ directory

5. Change NiceDay of Output interface to Demo_STM32.hex

Note that the extension.hex at the end is not less.

6. Don't compile the project, just click the download button.

Download completion can be seen in the output window

If the program is not running, you can check whether the reset operation after download is checked in the download interface.

About how to use Keil to download a separate Hex file to the microcontroller to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report