CYFX2LP - The Hex2bix Utility

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
aditya_r07
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Hello,

I am working on the FX2LP and I have a question regarding hex2bix utility.

How to convert files from the hex format to the bix or i2c format?. I tried all possible combinations but i was not able to generate .iic file. for this I referred https://www.cypress.com/file/134666/download  this pdf. (section 5.8 Utilities)

Regards,

Aditya R

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Aditya,

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.

pastedImage_5.png

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.

pastedImage_3.png

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.

Thanks,

Yatheesh

View solution in original post

2 Replies
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Aditya,

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.

pastedImage_5.png

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.

pastedImage_3.png

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.

Thanks,

Yatheesh

YatheeshK_36​ Thank you..It works..!

0 Likes