Keil Logo

ARM: HOW TO CREATE ONE HEX FILE FOR MY APPLICATION


Information in this article applies to:

  • RealView MDK-ARM Version 2.50a

QUESTION

In my µVision project I have defined different Read/Only Memory Areas in the dialog Project - Options for Target - Target. The option Create HEX File in the dialog Project - Options for Target - Output is also selected. When I build my application, a folder is created which contains a separate HEX file for each memory area rather than a single HEX file for the complete application. How can I prevent this?

ANSWER

µVision invokes the 'fromelf' utility with the option '--i32' in order to create a Intel Hex-32 file. With this option, a separate HEX file is created for each memory area. This can be used for programming different flash devices or different application parts (boot/application).

If one single HEX file should be generated, fromelf needs to be invoked with the option '--i32combined'. This can be done in the dialog Options for Target - Output - After Make - Run User Program. The command line may look like:

#KARM\BIN30\fromelf.exe #L.axf --i32combined --nodebug --output #H

The Create HEX File option in the same dialog must be turned off.

Since MDK-ARM version 3.0, µVision passes the option '--i32combined' to 'fromelf' by default.

MORE INFORMATION

SEE ALSO

Last Reviewed: Wednesday, February 28, 2018


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.