ARM Technical Support Knowledge Articles

HEX FILE SIZE IS TOO LARGE

Applies to: General Topics

Answer


Information in this article applies to:


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

Article last edited on: 2006-10-10 15:11:39

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential