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 generate Bin format files in Keil-MDK development environment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article focuses on "how to generate Bin files in the Keil-MDK development environment", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to generate Bin files in the Keil-MDK development environment.

Why do you need BIN files?

Some burners only support BIN files.

When upgrading OTA remotely, you can only use BIN files.

When using JLink script files for one-click burning, only BIN files are supported.

BIN files are much smaller than HEX and AXF files.

But Keil generates AXF and HEX file formats by default, so how to generate BIN?

Keil configuration generates BIN files

Keil comes with a gadget that can convert AXF files to BIN files by executing instructions

This requires calling an external program fromelf.exe to convert the AXF file into a BIN format file.

The location of the fromelf.exe file is in the installation directory Keil_v5\ ARM\ ARMCC\ bin or Keil_v5\ ARM\ ARMCC_505u2\ bin directory.

In the project configuration menu, the User tab, the command executed after compilation, is set to

Fromelf-- bin-o "$L@L.bin"# L", of course, you can also use the absolute path above, you need to specify the path of the fromelf file, the path of the output BIN file and the path of the generated AXF file.

Recompile, and you can see that the BIN file has been generated in the output directory.

How do other development environments convert AXF files to BIN files?

Of course, if you want to convert AXF files generated by other development environments into BIN files, you can also call this gadget directly.

The format of the command is:

[fromelf.exe file path]-- bin-o [BIN path} [AXF file path}]

Such as:

E:/Keil_v5/ARM/ARMCC/bin/fromelf.exe-- bin-o E:/Keil_Project/OneNET.bin E:/Keil_Project/OneNET.axf

At this point, I believe you have a deeper understanding of "how to generate Bin format files in the Keil-MDK development environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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