Converting files larger than 64KB using hex2c.exe

Question: My hex file is larger than 64KB and will not process using the hex2c.exe utility. Can the utility be modified to process files larger than 64KB?



Yes, the hex2c utility can be safely modified to process files larger than 64KB. To modify the utility:
1. Open the hex2c.dsw with Visual C++. This project is found under the Cypress\Usb\Utils\hex2c directory.
2. Change #define MAX_FILE_SIZE (64 * 1024) to #define MAX_FILE_SIZE (XXX* 1024) // xxx is some digit larger than 64.
3. Recompile the project.

With the newly-created tool, you can process the bigger hex file.