1 of 1 people found this helpful
There are two ways in which you can convert the hex file to .iic file.
1. Using command line:
copy paste the hex2bix.exe utility from the bin folder to the folder where the input .hex file is present.
open the command prompt and navigate to the folder containing the input .hex file and the utility.
run the command as below
hex2bix.exe -i -f 0xc0 -o <output file name> <input file name>
for example: to convert bulkloop.hex to Bulkloop.iic
hex2bix.exe -i -f 0xc0 -o Bulkloop.iic bulkloop.hex
Bulkloop.iic will be generated in the same folder.
2. Using the keil project: Automatic generation of the .iic file when the project is built.
Open the keil project, right click on the target and select "Option for target". Under User tab you can specify the hex2bix utility path, input file and the output file in the After build/rebuild section.
In this case the input file path and the output file path should be specified properly.
If only the input file name and the output file name is specified, keil will search for the input file in the project folder and generate the file in the same folder.
In the above case vend_ax firmware from the FX2LP DVK package is used, the hex2bix utility is present in the bin folder, the command line is used to relatively navigate to the bin folder and execute the utility.
since the input file and the output files names are only specified, the input Vend_Ax.hex is taken from the project folder and the output Vend_Ax.iic is also generated in the same folder.
This command is automatically executed after building the project.
All the firmware projects provided with the FX2LP DVK pre-includes this so the when you build the example project the .iic file is generated along with the .hex file.