]> sigrok.org Git - libsigrok.git/commit
asix-sigma: improve robustness of firmware download, delay and retry
authorGerhard Sittig <redacted>
Tue, 12 May 2020 05:59:54 +0000 (07:59 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 05:50:18 +0000 (07:50 +0200)
commitc749d1ca5755fe8b7f3e3fd914655b1a1d1e3a71
tree9636eb907ce4497ca64aadb3065266ec0981fbd1
parent80e717b3cfac82d63c98614fe6179fb0e4fdaf8d
asix-sigma: improve robustness of firmware download, delay and retry

Running several firmware uploads in quick repetition sometimes failed.
It's essential to stop the active netlist from preventing the FPGA's
getting reconfigured (FTDI to FPGA pins are so few, and shared). Delays
in a single iteration of the initiation sequence improves reliability.
Retries of the sequence are belt and suspenders on top of that.

Before the change, failure to configure was roughly one in ten. After
the change, several thousand reconfigurations passed without failure.
src/hardware/asix-sigma/protocol.c