Keil Logo

ARMLINK: GENERATING BINARY OUTPUT DURING A BUILD


Information in this article applies to:

  • RealView Linker All Versions

QUESTION

How can I convert my ARM program to binary format during the build process?

ANSWER

The ARM toolchain includes a utility called FROMELF.EXE. You can use this program to extract a binary file from the ELF absolute object file for your project. Configure your µVision project to generate the binary automatically as follows:

  1. Go to Options for Target - User - After Build/Rebuild
  2. Check "Run #1"
  3. Enter the following in the "User Command" path (where "myprog" is the project's "Name of Executable")
C:\Keil\ARM\ARMCC\bin\fromelf.exe --bin --output=myprog.bin myprog.axf

or with key sequences

$K\ARM\ARMCC\bin\fromelf.exe --bin --output=@L.bin !L

Older versions of Keil may have the executable in the this folder

C:\KEIL\BINxx\FROMELF.exe

(where xx is 31 or 40, depending on the software version.

The fromelf option --bin generates one binary file for each load region of your application. If one complete binary file is needed, consider using the option --bincombined.

MORE INFORMATION

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Wednesday, April 19, 2017


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.