timvideos / HDMI2USB-fx2-firmware

HDMI2USB firmware for the Cypress FX2 found on the Digilent Atlys and Numato Opsis boards.
24 stars 11 forks source link
cypress cypress-fx2 eeprom firmware fpga ftdi ftdi-devices fx2 fx2lp hdmi2usb jtag numato-opsis usb usb-devices usb-serial-adapters

HDMI2USB-fx2-firmware

Build Status

This repository contains the firmware used in the HDMI2USB project on the Cypress FX2 chip found on boards such as the Numato Opsis and the Digilent Atlys boards.

Firmware is generally compiled with [SDDC 3.6]() and the sdas8051 assembler. Older versions might work but have been known to generate incorrect firmware.

microload

microload is firmware which loads a second stage firmware from an FPGA via I2C.

In microload every program byte counts and thus is hand coded in assembly.

The firemware is used on the Numato Opsis board to allows the FPGA to switch the FX2 functionality.

eeprom-unconfigured

eeprom-unconfigured will cause the Cypress FX2 which boot with a given VID/PID and then wait for full firmware to be loaded via USB.

JTAG

The JTAG firmware is used to allow loading gateware onto an FPGA.

HDMI2USB UVC+CDC

This is the primary firmware for HDMI2USB functionality.

The firmware is responsible for transporting the video data off of the FPGA. It does this by enumerating as a USB Video Class device; a standard way of interfacing devices such as webcams to a host. Linux, Windows and OS X all include support out of the box for reading taking to such devices.

The firmware is also used for control and debugging of the system, through a USB Communications Class Device. This is a common way of attaching serial ports to the system, and under Linux it can be accessed at /dev/ttyUSBX.

Cypress EZ-USB FX2LP

FIXME: Put some documentation about the FX2 here.

Cypress EZ-USB FX2LP

Cypress’s EZ-USB® FX2LP™ (CY7C68013A/14/15/16A) is a low power, highly integrated USB 2.0 microcontroller. FX2LP has a fully configurable General Programmable Interface (GPIF™) and master/slave endpoint FIFO (8-bit or 16-bit data bus), which provides an easy and glueless connection to popular interfaces such as ATA, UTOPIA, EPP, PCMCIA, DSP, and most processors.

Boards

Numato Opsis

Digilent Atlys

Building

make load-fx2

will build and flash the FX2 firmware. This requires the hdmi2usb-mode-switch command, which on Debian Stretch and later can be installed using the hdmi2usb-mode-switch package, otherwise see HDMI2USB-mode-switch. It also requires SDCC.

By default the firmware will be built for the Opsis board. This can be changed by passing BOARD=atlys to make to build for the Atlys boards. The audio firmware also supports BOARD=fx2miniboard for building for the Cypress EZ-USB FX2LP.

To build the docs, doxygen is required. Then run

make docs

There are three ways to run hdmi2usb-mode-switch:

  1. As root
  2. Install the unbind-helper as a setuid binary
  3. Install the udev-rules which sets the permissions of the unbind.