How to run the Arty A7 UART test by hand¶
You have an Arty A7 on its Raspberry Pi and want to run the UART test by hand.
The UART reaches the Pi through channel B of the FTDI chip, as /dev/ttyUSB1 at 115200 baud with no flow control. The test passes when the LiteX BIOS banner arrives and printable ASCII echoes back.
This procedure is waiting for its run: test-designs issue #248.
What you need¶
The Arty A7 joined to the Raspberry Pi by its USB cable (Arty A7 wiring to a Raspberry Pi).
The fpgas.online apt repository on the Raspberry Pi: How to install the Arty A7 packages. Step 1 installs the debug tool, which
fpgas-online-artydoes not bring.
Steps¶
On the Raspberry Pi, install the debug tool,
fpgas-arty-debug.$ sudo apt install fpgas-online-arty-debug
On the Raspberry Pi, run the test, which loads the UART design and runs its host script.
$ sudo fpgas-arty-debug test uart
Check¶
The test passes when its host script exits 0, so
echo $?prints0.
If it fails¶
What you see |
Likely cause |
Fix |
|---|---|---|
no |
the Arty’s FTDI is not on USB; a board in that state cannot be programmed or reached on its console |
run |
the test talks to the wrong device |
the tool uses |
find the UART channel’s own port: in |