Intel Hex or Motorola Hex file converter
Converts Motorola and Intel hex files to binary. Executables for windows included. A similar project also does hex <-> binary conversions, supports many formats and other features: see: srecord (http://srecord.sourceforge.net/)
- Supports unsorted records
- Can add a checksum to a file
- Can fill unused bytes with FF or another value
Easy to use and works.
It works like a charm. My toolchain generates by default bin-files. If I configure it to produce intel hex-files and call Hex2Bin to generate a bin-file again, the result is 100% identical.
The windows executable for hex2bin is easy to use and worked for me without a hitch. I'll still need to do some tests to check for correctness, but the project is nice and easy to use.
It does simply not do what seems logic. And I checked the included help instruction. I got a program in Hex. that specifies in each address of each line in the hex file. But the program seems to ignore it a bit. My program starts at 0.0D00, and ends at 1.FFFE. The program seems to detect that and reports those as last and first address, but the BIN file it makes does seems to start at 0.0000. with in byte 0.0000 the data that is supposed to be at 0.0D00 I tried to give an offset with -s 00D00, but it does not seem to do anything different. To bad, because it does fill in the padding nicely with FF, or what I tell it to pad with.