Jan 052016
A bit of a simple one this … if you are looking at converting an Intel hex format file that looks like the following :-
Then it is relatively trivial under Linux (Debian). The relevant tool is probably installed anyway; unless you are not compiling software which may be a marginal activity for weird people but so is converting ihex files. But just in case, you can install it with: sudo apt-get install binutils.
Once installed (or being already present) the conversion process is as simple as :-
» objcopy -I ihex -O binary somefile.hex somefile.bin
Be careful to specify the second file name or objcopy will overwrite the original hex file (don’t ask how I discovered this!).