-
Notifications
You must be signed in to change notification settings - Fork 26
Firmware
The HDMI2USB device has two different firmware, one for the FPGA and one for the Cypress FPGA chip.
- 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.
Use impact to program the hdmi2usb_onboard.bit device to the FPGA.
Impact must be installed, along with the Digilent ADEPT tools. To avoid having to use the Impact GUI, the following script can be used https://gist.github.com/shenki/5387626:
impact -batch download.cmd
libusb fxload comes from https://github.com/pbatard/fxload
./fxload -vvv -t fx2 -D 1443:0007 -I uvc_bulk.hex
Note: the fxload version that ships with Ubuntu, Debian and possibly other Linux distributions (0.0.20081013-1) does not support the -D
syntax as above.
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.