I wrote a routine to download .hex firmware files to my EZ-USB device  but the routine is not working

Question: I wrote a routine to download .hex firmware files to my EZ-USB device, but the routine is not working. What did I do wrong?

 

Answer:

Hex files, such as the various ".hex" files in the Cypress EZ-USB Dev Kit examples, are ASCII representations of binary data. The data in a hex file must be converted into binary data before downloading to the EZ-USB device.

See http://www.keil.com/support/docs/1584.htm for a discussion of the hex file format.