02-22-2012 11:18 PM
The above referenced post is followed by a couple of other posts that indicate that program may not always work. Attached is c++ code to convert a hex file to a coe file. It should compile as a console application in codeblocks on Linux. It will also work in visual c++. You may need to reference some libraries if using command line. The file name and memory size are hard coded in the file, so these should be changed to match your input file and memory size. It is set up for 64kB of 8 bit. It shouldn't be too difficult to change the radix or memory size.