How to generate a *. BIN file in MDK?

Source: Internet
Author: User

In the integrated development environment of realview MDK, debugging files in *. axf format and executable files in *. hex format can be generated by default. Although the files in these two formats are very helpful for downloading and debugging the ulink2 simulator, ADS users are more accustomed to using *. bin files, even some embedded software developers already have *. debugging or burning tools for Bin files. To fully utilize the existing tools and leverage the advantages of the integrated development environment of realview MDK *. axf format file or *. convert the hex format file *. bin files are a natural idea. This article will discuss in detail this conversion method.
Before detailed introduction, it is necessary to understand the fromelf.exe conversion tool in the rvctdevelopment kit of arms', because it is exactly the tool used to generate *. Bin files in realview MDK.

The syntax format of the fromelf.exe Conversion Tool is as follows:
Fromelf [Options] input_file

The [Options] includes the following options and detailed descriptions:


After understanding the syntax format of the fromelf Conversion Tool, the following describes how to use it in realview MDK:

1: You must first be able to produce executable files (that is, configure output)

AA indicates the generated executable file (that is, a file of AA. axf will be generated after compilation). The generated binfile is generated from this file.

2: generate a. binfile from the executable file (that is, configure the user)

C: \ Keil \ Arm \ bin40 \ fromelf.exe -- bin-O: Command to generate a binfile from an executable file

D: \ 1 \ out \ 33.bin: path and file name of the produced binfile

D: \ 1 \ out \ AA. axf: path and file name of the executable file

After compilation, 33. binfiles can be produced (note that the path is variable)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.