The same shoes that used Keil know that now the Keil can be output by default. AXF debug files and the. Hex executable file that can be checked for output, there is no output option for the bin (binary) file. However, there are times when it is necessary or customary to use the. bin file for Burn-write, one example below:
1. users who have been using ads habitually use the. bin file;
2. some of the application software with the burner band only supports. bin files;
3. as I have encountered, I need to use the network update firmware routines provided by the STM32 company to have some problems with the. bin file (. hex file after the network update), and the conversion of the Hex2bin software is not possible.
In fact, Keil also has its own tool software, as long as the appropriate configuration can output bin files, but before the introduction of specific methods, please read the following section on the Keil in the fromelf.exe tool Description:
The syntax for this tool is:fromelf [options] Input_file
The options and descriptions are as follows:
Command option format
Command |
Description |
--help |
Display Help information |
--vsn |
Display version Information |
--output file |
Output file (default output is a text file) |
--nodebug |
Debug information is not included in the generated image file |
--nolinkview |
Information in the generated image file that does not contain segments |
Binary output format
Options |
Description |
--bin |
Output plain binary format files |
--m32 |
Generate a Motorola 32-bit hexadecimal format file |
--i32 |
Generate Intel 32-bit hexadecimal-formatted files |
--vhx |
Byte-oriented bits in hexadecimal format file |
--base Addr |
Set up base address for m32,i32 format files |
--text |
Display text information, text message flags are as follows: -V Print Details -A print data address (for maps with debug information) Like -D Print the contents of a data segment -E Print Expression table -F Print the message to eliminate the virtual function -G Print Debug table -R Print Relocation information -S Print character descriptor -t print string table -y Print the contents of a dynamic segment -Z Print code and data size information |
Having finished with the syntax of the tool, here's how to use the own tool in Keil so that the. bin format can be generated after the project is compiled:
1. Open a built project document, do not give an example to illustrate.
2. Open the Optionsfortarget ' project name ' dialog box, you can click the icon directly, such as:
3. Select the User tab and make the same configuration as:
4. Depending on the configuration of the user page, also configure the output page, as follows:
5. Click OK and then recompile to generate the. bin format file with the configuration path in:
OK, after finishing the call ..... Hope to everyone a little help!
Keil how to generate the bin file "Keil How to generate a bin file"