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
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)
Hi Robert, Thanks for the info. However, I still have not been able to figure out exactly how you would implement the technique. Do you do this within IDE enviroment or from DOS prompt? if you don't mind please provide a brief example. Best Regards, JIMMY
The best way is to do it the same place your are doing the hex2bin right now. You can do it at the command line if you like. fromelf --bin --output file.bin file.axf You can make use the "run user program" option from under the ide environment You can also run a .bat file you from within the ide if you need to run more than 1 or 2 programs