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

I tried to convert my hex file generated
by UV3 compiler (REALVIEW) to binary
using HEX2BIN.exe utility s/w.
The program keeps displaying the following
message:

ERROR: Invalid Record type in HEX record 1
STATUS: HEX to BIN conversion was not successfull.

Here is what I type in:

HEX2BIN /L0x8000 myfile.hex

Thanks in advance

Parents
  • I ran into this problem on exactly the same day. Keil support was helpful.

    You want to use c:\keil\ARM\BIN30\fromelf.exe to generate the bin file directly from the ELF file. Unless you need the hex file for something else, there is no need to build it. fromelf.exe works with long file names and is VERY fast. It is documented in the manual.

    (If you really want to use hex2bin, you can acutally remove the invalid types, but once you use fromelf.exe, I don't think you will ever go back)

Reply
  • I ran into this problem on exactly the same day. Keil support was helpful.

    You want to use c:\keil\ARM\BIN30\fromelf.exe to generate the bin file directly from the ELF file. Unless you need the hex file for something else, there is no need to build it. fromelf.exe works with long file names and is VERY fast. It is documented in the manual.

    (If you really want to use hex2bin, you can acutally remove the invalid types, but once you use fromelf.exe, I don't think you will ever go back)

Children