A failing Acorn test on a Raspberry Pi 5¶
The check of your Acorn on a Raspberry Pi 5 printed a failing line, and you want to know which wire it means.
From a failing line to the wire¶
Find the failing line in the table, then the wire in the two cavity pictures under it. The number in a cavity is the number on the wire’s flag.
To move a wire, the cable goes through the same checks as when the cable was built, before any boot:
Power off the Raspberry Pi 5: unplug its power, and its network cable if it is powered over PoE.
Take the card out and pull both plugs from its sockets.
Move the wire.
Check that cable’s plug contacts against its housing with the meter, as when the cable was built:
the JTAG cable: steps 3 and 4 of How to fill the JTAG cable’s housing (Raspberry Pi 5);
the UART cable: steps 3 and 4 of How to fill the UART cable’s housing (Raspberry Pi 5).
Run the bench check, with the card out: How to check the cables on the bench (Raspberry Pi 5).
Fit the cables: How to fit the cables and the card (Raspberry Pi 5).
Boot the Pi and run the check again.
One test can be run on its own: sudo fpgas-acorn-verify --test jtag, or --test p2-serial. Each prints the usual summary, then the whole report as JSON.
The failing line |
Look at |
|---|---|
(or a speed) |
the M.2 seat; or the setup’s expected figures are not this host’s |
the P1 cable is not plugged in, or TCK, TMS or TDO is open or on the wrong pin |
|
another device answers, or the card is not the variant the host expects |
|
(or ), , or |
TDI: the IDCODE read worked without it |
the serial pair: open, or crossed; |
|
with the |
J2 and K2 are crossed: wires 2 and 3 of the P2 cable are in each other’s cavity. Take both terminals out of the housing and put each in the other’s cavity (the P2 cavity picture below) |
the same |
that version had J2 and K2 at each other’s position in the Acorn’s socket: swap the two terminals as in the row above |
|
that one wire is open, or on the wrong pin. Before the FPGA drives, the test sets the Pi’s pull against the level to come, so an open wire reads the opposite of what was driven; GPIO3 (J5’s pin) has a pull-up of its own on the Pi, so an open J5 wire reads 1 whatever is driven |
with the |
J5 and H5 are crossed: wires 4 and 5 of the P2 cable are in each other’s cavity. Take both terminals out of the housing and put each in the other’s cavity (the P2 cavity picture below) |
The two cavity pictures are the ones the cables were built from, shown again to find a wire’s cavity. Their notes about cutting, marking and the meter check belong to building the cables.


p2-serial and p2-gpio print what was driven and what was read, eight lines for two wires. The two digits are the two signals: the right-hand digit is J2 (or J5), the left-hand one K2 (or H5).
A crossed pair. The p2-serial test
drives each wire as a plain pin, first from the FPGA and then from the host. The line FPGA drives 01 raises J2, which
should arrive on GPIO14; J2 arrives on GPIO15:
p2-serial fail: J2 -> GPIO14: the FPGA drove 1, the Pi read 0; K2 -> GPIO15: the FPGA drove 0, the Pi read 1; J2 -> GPIO14: the FPGA drove 0, the Pi read 1; K2 -> GPIO15: the FPGA drove 1, the Pi read 0; GPIO14 -> J2: the Pi drove 1, the FPGA read 0; GPIO15 -> K2: the Pi drove 0, the FPGA read 1; GPIO14 -> J2: the Pi drove 0, the FPGA read 1; GPIO15 -> K2: the Pi drove 1, the FPGA read 0; the UARTBone does not answer on /dev/ttyAMA0 after the switch (no fpgas.online SoC answered at 1200 baud after a break)
FPGA drives 00: Pi reads GPIO14=0 GPIO15=0
FPGA drives 01: Pi reads GPIO14=0 GPIO15=1
FPGA drives 10: Pi reads GPIO14=1 GPIO15=0
FPGA drives 11: Pi reads GPIO14=1 GPIO15=1
Pi drives 00: FPGA reads 00
Pi drives 01: FPGA reads 10
Pi drives 10: FPGA reads 01
Pi drives 11: FPGA reads 11
One open wire, a J5 wire that does not reach GPIO3. GPIO3 reads 1 whatever the FPGA drives. The Pi’s own pull-up on GPIO3 wins over the test’s pull-down. On GPIO4 an open wire would read the opposite of what was driven. On this card the FPGA read J5 as 1 whatever the Pi drove, and H5 and GPIO4 follow each other:
p2-gpio fail: J5 -> GPIO3: the FPGA drove 0, the Pi read 1; J5 -> GPIO3: the FPGA drove 0, the Pi read 1; GPIO3 -> J5: the Pi drove 0, the FPGA read 1; GPIO3 -> J5: the Pi drove 0, the FPGA read 1
FPGA drives 00: Pi reads GPIO3=1 GPIO4=0
FPGA drives 01: Pi reads GPIO3=1 GPIO4=0
FPGA drives 10: Pi reads GPIO3=1 GPIO4=1
FPGA drives 11: Pi reads GPIO3=1 GPIO4=1
Pi drives 00: FPGA reads 01
Pi drives 01: FPGA reads 01
Pi drives 10: FPGA reads 11
Pi drives 11: FPGA reads 11
A correctly wired pair reads back what was driven: FPGA drives 01: Pi reads GPIO14=1 GPIO15=0, Pi drives 01: FPGA reads 01, and so on for every pattern.
A failing line that is not in the table above is not about a wire of the cables. Other Acorn check messages on a Raspberry Pi 5 has every other message the check gives about an Acorn.