Skip to content

Firmware

mithro edited this page Apr 15, 2013 · 29 revisions

The HDMI2USB device has two different firmware, one for the FPGA and one for the Cypress FPGA chip.

Firmware Diagram

Programming Firmware

  • Step 0 - Turn on the power to the FPGA board
  • Step 1 - Program the Xilinx FPGA board (using the PROG port)
  • Step 2 - Program the FX2 chip1
  • Step 3 - Pull USB plug out of the computer
  • Step 4 - Push the USB plug back into the computer, the device should appear as a UVC camera.

1 - You are programming the FX2 chip which runs the PROG port on the board. This means that you won't be able to reprogram the FPGA until power-cycle the FPGA board.

Xilinx Spartan FPGA Firmware

Use impact to program the hdmi2usb_onboard.bit device to the FPGA.

Cypress USB Chip Firmware

libusb fxload comes from https://github.com/pbatard/fxload

./fxload -vvv -t fx2 -D 1443:0007 -I uvc_bulk.hex

You should also be able to use http://www.makestuff.eu/wordpress/software/fx2tools/

./fx2loader --vidpid=1443:0007 uvc.hex ram

Once programmed, you'll need to unplug the USB and plug it back in for the computer to see the new UVC camera device.

!!!WARNING!!! - Only program to RAM

Programming to Flash/EEPROM will cause you to lose the ability to program to the FPGA permanently!

Once you program the Cypress Firmware you will be unable to program the FPGA without a power cycle.