Use hex2bix to convert. HEX to. IIC, and burn the EEPROM.

Source: Internet
Author: User

Suite3.4.7 comes with the hex2bix program, which can convert the Hex file to an IIC file, so that the firmware can be burned into the EEPROM on the IIC bus.

??

Hex2bix.exe running (in cmd) is an introduction to the program interface and command parameters.

??

I embed the hex2bix.exe command into the Keil Project, for example:

Medium: I copy the hex2bix file to the root directory of the d disk (in fact, it can be directly placed under the project directory, which can save D: \), using the 0xc2 boot mode, the generated HEX file is automatically converted to an IIC copy in the project directory.

This is also a common method.

??

Experiment: checks whether IIC files can be burned into the EEPROM and whether the firmware works properly.

??

Objective: To detect whether the eeprom of ccd1 can be rewritten and whether the eeprom of ccd1 can work normally.

??

Lab steps and symptoms:

1. Prepare the generated ccd2.iic file.

2, ccd1 inserted into the XP platform, because the previous pid1002, 1004 are bundled to the driver ezusb. sys, here using the old version of the development kit of the EZ-USB Control Panel to burn the IIC to the EEPROM.

3. Check the burning result, reconnect ccd1 to XP, and enumerate the result to pid1004, which proves that the EEPROM is successfully written. The message section of the program interface displays the device dscr before and after the flushing. It can be seen that the PID changes from 1002 to 1004.

4. Run the host computer program to confirm that the image can be read.

??

Experiment conclusion: fx2 with EEPROM, as long as it is bound to the official cypress drive (cyusb. sys or ezusb. you can use the control center or Control Panel to fl the eeprom firmware, which is almost as convenient as flushing Ram.

??

Next step: solder the EEPROM on the ccd2 circuit board. It will be guided in 0xc2 mode to simplify the development steps (no firmware needs to be burned to the default device Ram later ).

??

Continued:

1. Weld 24lc64i to ccd2 -- complete.

2. Insert ccd2 into XP and use control center to burn ccd2.iic to 64kb EEPROM.

3. Plugging ccd2, the enumeration is pid1004 bound to ezusb. sys, and the control panel is used to detect the descriptor.

4. Run the host computer program to read images normally.

Use hex2bix to convert. HEX to. IIC, and burn the EEPROM.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.