Keil Logo

µVISION: Hex Output File for a Device Programmer


Information in this article applies to:

  • µVision version 2
  • µVision version 3
  • All C166 versions
  • All C251 versions
  • All C51 versions

QUESTION

Do the Keil Tools provide Intel HEX output for a device programmer?

ANSWER FOR 8051, 251 AND 166 DEVICES

  1. Open the project in the Keil IDE
  2. Click the drop-down menu Project, then select Options for Target
  3. Select the Output tab
  4. Check Create HEX File
  5. Select the proper HEX file format to create. Typically this will be HEX-80 for 8051 programs and HEX-386 for large C16x programs)
  6. Click the OK button
  7. Click the drop-down menu Project, then select Rebuild all target files - if the project builds without errors, the linker creates a hex file in the same location as the object files

The final part of the make process is converting the linker-created absolute object file into an Intel HEX-format file that should be compatible with any device programmer.

If you do not build your projects with µVision, you need to run the Object HEX Converters (fore example OH51.EXE) after linking to convert the absolute object file produced by the linker into an Intel HEX file.

ANSWER FOR ARM DEVICES

See: µVision: Creating Intel Hex Files for Arm-Based Devices.

MORE INFORMATION

SEE ALSO

Last Reviewed: Monday, May 7, 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.