How to load a design onto a Fomu EVT with openFPGALoader¶
You have a Fomu EVT on a Pi and a .bin bitstream, and want it running.
Why the board leaves USB afterwards is on Programming a Fomu EVT.
What you need¶
A Raspberry Pi 3B+ with the Fomu EVT plugged into its USB port and seated on its GPIO header.
openFPGALoaderinstalled on the Pi; the packages bring it.The Fomu’s DFU bootloader running, which waits for DFU activity for about 3 minutes.
Steps¶
On the Pi, run
lsusband find1209:5bf0; the Fomu is in its DFU bootloader.On the Pi, run
openFPGALoader -b fomu design.bin, wheredesign.binis your bitstream; the bootloader writes the bitstream to the flash’s user image and starts it.
Check¶
openFPGALoaderends without an error message.A design with no USB core, such as the UART echo, leaves USB:
lsusbno longer lists1209:5bf0. It talks over the GPIO header pins.The design answers on
/dev/serial0once the serial login console is stopped.
A design with no USB core keeps the Fomu off USB, so no other design can be loaded over DFU. The test designs that
fpgas-fomu-debug program and test load are such designs.
To put foboot back, run sudo fpgas-fomu-debug reset from the
fpgas-online-fomu-debug package. It resets the Fomu through the header and waits up to 10 s for foboot (1209:5bf0) on USB. The Fomu is then in its
bootloader, and its 3-minute window to load starts again. A power cycle by the site operator does the same.
$ sudo fpgas-fomu-debug reset
If it fails¶
What you see |
Likely cause |
Fix |
|---|---|---|
|
The reset through the header did not restart foboot |
Ask the site operator, then power-cycle the Fomu’s host. Then check that |
|
The Pi could not drive the Fomu’s header: the host is not a Raspberry Pi, the header read failed, or a header line was left an output |
Ask the site operator, then power-cycle the Fomu’s host. Then check that |
|
The bootloader timed out of DFU after about 3 minutes, or a bitstream with no USB core is running |
Run |
More faults are on Fomu EVT programming faults.