Doug Brown publishes fixes for two Linux jtagd issues affecting USB Blaster

Doug Brown has published a patching tool after investigating two problems with the jtagd service when using USB Blaster programmers under Linux. He says reverse engineering with Claude Opus 5.5 helped identify both causes. According to Brown, the issues have existed since at least Quartus 18.1 and remain present in Quartus 25.1.
The first bug involves an uninitialized variable in the JTAG_SERVER_USB_BLASTER constructor. When its value is greater than zero, jtagd inserts data intended for USB-Blaster II into outgoing USB traffic, disrupting devices that use the original USB Blaster protocol. This causes a 30-second hang followed by a JTAG-chain read error. Brown says it appears to occur when a programmer is disconnected and reconnected while jtagd keeps running.
The second issue concerns the order of commands sent when opening an FT245 chip. Brown observed that the sequence appears to make some clones stop accepting data for about 250 milliseconds. An immediate JTAG-chain query then leaves jtagd waiting 30 seconds for a response. Moving Set Latency Timer to the beginning eliminated the delay on his devices. He remains uncertain whether this is a jtagd bug or behavior specific to chips used in some clones.
Brown reports that all clones available to him work correctly with both fixes, alongside his earlier firmware and CPLD changes. He checked the results through repeated stress tests, automatically cycling power with a USB hub compatible with uhubctl.
Original source: habr.com ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Хабр
- Discussion ↗: 2
Measured: 14 Nov 2026, 03:54 UTC