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

HEX2BIN only parses part of hex file

I'm using hex2bin to convert a hexfile with several gaps in it. But I have found that if the hex file ends in a line with zero bytes, hex2bin will stop there and not process the rest of the file.

An excerpt of the file is below:
:101F2000E780BE72456200FF1F1341FD88EF00008D
:001F3000B1
:101F40000100020103020403050406050706080751

But if I delete the zero byte line as shown hex2bin will convert correctly:
:101F2000E780BE72456200FF1F1341FD88EF00008D
:101F40000100020103020403050406050706080751

Or if I add a byte to that line hex2bin will convert correctly:
:101F2000E780BE72456200FF1F1341FD88EF00008D
:011F300000B0
:101F40000100020103020403050406050706080751

This is a critical problem since my TI tools will create hex files that have zero byte lines (which is a perfectly valid hex file)

0