This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hex File Format. Known as ???

Is there an industry standard name for the hex file output format Keil uses for an 8051?

In the target configuration, its called "HEX-80", but I'm not so sure that's the official name for this format.

Any help appreciated.

Parents
  • Robert,

    Although it will further complicate the build process, there's probably a pretty easy way to do the whole verification dance. There are various utilities floating around (some even made by Keil, I believe) that will convert a hex file to a "binary image" of what the buffer from the hex file will look like. You could run that on the hex. Next, you can run the inverse (bin2hex) and convert that image into a hex file. Unlike the compiler, it won't have any reason to make something non-sequential and you should have a file that the Data-I/O will use.

    As far as verifying, you could just run hex2bin AGAIN on the next hex file, and compare that binary image with the one generated from the original hex file. If they're byte-for-byte identical, then there's no further verification needed.

    Hope that helps.

Reply
  • Robert,

    Although it will further complicate the build process, there's probably a pretty easy way to do the whole verification dance. There are various utilities floating around (some even made by Keil, I believe) that will convert a hex file to a "binary image" of what the buffer from the hex file will look like. You could run that on the hex. Next, you can run the inverse (bin2hex) and convert that image into a hex file. Unlike the compiler, it won't have any reason to make something non-sequential and you should have a file that the Data-I/O will use.

    As far as verifying, you could just run hex2bin AGAIN on the next hex file, and compare that binary image with the one generated from the original hex file. If they're byte-for-byte identical, then there's no further verification needed.

    Hope that helps.

Children