Skip to content

Flashing bitstream

Yeo Kheng Meng edited this page Jan 23, 2024 · 7 revisions

This page goes through the steps to flash the FPGA bitstream to the board. These instructions are for the Windows PC only although it can be modified to work on other platforms.

Equipment required

  1. FT2232H MINI MODULE with miniUSB cable
  2. 10x 2.54 mm female-female jumper wires
  3. PC with OSS Cad suite
  4. Optional: Separate 5V 2.54mm jumper wires for power only

Steps

  1. Install the Windows build of the OSS CAD Suite.
  2. Install the FTDI driver.
  3. Change the driver to libusbK (original instruction source).
  • Download Zadig tool
  • Connect the FTDI module to your PG
  • Launch the Zadig tool
  • List all devices
  • Change the dropdown menu to FT2232H MiniModule (Interface 0)
  • Change the driver dropdown to libusbK (vX.X.X.X)
  • Click "Replace Driver"
  • Do the same for FT2232H MiniModule (Interface 1)

After replacing the driver, on the next launch, you should see the following:

After successful, disconnect the module from your PC.

  1. Connect the pin headers from the MINI MODULE to the board using jumper wires.
Point 1 Point 2 Description
CN2 pin 1 CN2 pin 11 V3V3 to VIO strap
CN3 pin 1 CN3 pin 3 VBUS to VCC strap
CN2 pin 3 CN3 pin 12 V3V3 to VIO strap (2)
CN2 pin 14 SPI cable pin 1 CS
CN2 pin 16 SPI cable pin 2 CDONE
CN2 pin 7 SPI cable pin 3 SCK (serial clock)
CN2 pin 15 SPI cable pin 4 CRESET
CN2 pin 9 SPI cable pin 5 CIPO (controller in, peripheral out)
CN2 pin 2 SPI cable pin 6 GND
CN2 pin 10 SPI cable pin 7 COPI (controller out, peripheral in)
n/a SPI cable pin 8 not used
CN3 pin 1 or 3 5V on board 5V power from module to board

After connecting, you may connect the module to your PC.

Connections on programmer module

Connections on card

Observe that yellow LEDs D1 and D2 turns on indicating that 5V external source and 3.3V internal LDO are working. Green LED D3 turns on indicating that TFP410 IC is active with no external HDMI monitor connected.

  1. Run the programming tool. You should see something like the following:
cd verilog
# This command may take about 90 to 120 seconds to complete
iceprog -p isavideo.binm

PS [your-directory]\graphics-gremlin-hdmi\verilog> iceprog -p .\isavideo.binm
init..
cdone: high
reset..
cdone: low
flash ID: 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18 0xBF 0x26 0x18
disable flash protection...
file size: 540560
erase 64kB sector at 0x000000..
erase 64kB sector at 0x010000..
erase 64kB sector at 0x020000..
erase 64kB sector at 0x030000..
erase 64kB sector at 0x040000..
erase 64kB sector at 0x050000..
erase 64kB sector at 0x060000..
erase 64kB sector at 0x070000..
erase 64kB sector at 0x080000..
programming..
done.
reading..
VERIFY OK
cdone: high
Bye.
Clone this wiki locally