hex2bix -M is buggy (with fix) | Cypress Semiconductor
hex2bix -M is buggy (with fix)
Recently I found out that the -M option to set the size of the destination eeprom does not work correctly. I have an FX2 with 16kB internal ram and an external eeprom of 8kB. Hex2Bix cannot place any code in the upper 8kB of ram if I use -M 0x2000. However if I use -M 0x4000 it correctly creates a .iic file of 7.8kB which of course fits in the 8kB eeprom. Hex2Bix seems to think on occasion that the memsize is the size of the FX2 memory instead of the size of the eeprom.
Luckily Cypress released the source and I was able to find and fix the bugs in it. So here it is, the modified source and the resulting executable.