Keil Logo


Information in this article applies to:

  • C166 Version 3.12


My project seems to build perfectly, the only problem is that the HEX file is not created. What am I doing wrong?


A possible cause of this is if your program utilizes addresses over 1Mb. For example, if you have a very large array (70,000 bytes) located in XCONST memory starting at 100000H, then you will start using addresses over 1Mb.

The Intel HEX-86 file format cannot handle addresses this large, so the HEX file is not created.

Make sure that you have selected to create an Intel HEX file in the Project Make Options.


Configure your project so that an Intel HEX-386 file is created instead. This is an extended HEX file format that can handle the large addresses.

  1. Choose 'OH166 Object-Hex Converter...' from the Options menu.
  2. Select 'Intel HEX-386' in the dialog box and click on OK.

You can then rebuild your project to create the HEX file.


Last Reviewed: Sunday, October 29, 2006

Did this article provide the answer you needed?
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.