Keil Logo

GENERAL: HEX FILE SIZE IS TOO LARGE


Information in this article applies to:

  • All Tools

QUESTION

I have created an Intel HEX file using the Keil tools. However, the size of the file is really large. My system is only 32 KBytes but the size of the HEX file is over 40 KBytes. What can be the problem?

ANSWER

The Intel HEX file format is NOT a binary format. There is no one-to-one correlation between the data in the HEX file and the number of bytes in your application program.

In fact, the HEX file format is an ASCII Text format file and is easy to read and modify in a text editor (like Notepad). Each line of the HEX file includes an offset, length, and checksum in addition to the data.

The word HEX indicates that the bytes of your program are encoded as Hexadecimal digits in the HEX File. For that reason, in addition to the offset, length, and checksum, there are two bytes stored in the HEX file for each byte of your program.

Refer to the Intel HEX File format for more information regarding this file format.

MORE INFORMATION

FORUM THREADS

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

Last Reviewed: Tuesday, October 10, 2006


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.