forked from schlae/graphics-gremlin
-
Notifications
You must be signed in to change notification settings - Fork 3
Flashing bitstream
Yeo Kheng Meng edited this page Apr 30, 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.
- FT2232H MINI MODULE with miniUSB cable
- 10x 2.54 mm female-female jumper wires
- PC with OSS Cad suite
- Optional: Separate 5V 2.54mm jumper wires for power only
- Install the Windows build of the OSS CAD Suite.
- Install the FTDI driver.
- Change the driver to libusbK (original instruction source).
- Download Zadig tool
- Connect the FTDI module to your PC
- 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.
- 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.
- 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.