# \[Перевод\] Почему клоны USB Blaster под Linux зависают на 30 секунд: две находки в jtagd из Quartus

DevFeed: [\[Перевод\] Почему клоны USB Blaster под Linux зависают на 30 секунд: две находки в jtagd из Quartus](<https://devfeed.tech/articles/usb-blaster-linux-30-jtagd-quartus-127757.md>)

Original publisher: [Read original article](<https://habr.com/ru/articles/1106326/>)

Author: opium

Published: 2026-11-11T04:08:19Z

Content type: article

Language: ru

Sources: [Tagir Valeev](<https://devfeed.tech/sources/tagir-valeev.md>)

Topics: [USB](<https://devfeed.tech/topics/usb.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [altera](<https://devfeed.tech/tags/altera.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-opus](<https://devfeed.tech/tags/claude-opus.md>), [claude-opus-5-5](<https://devfeed.tech/tags/claude-opus-5-5.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [ft245](<https://devfeed.tech/tags/ft245.md>), [ftdi](<https://devfeed.tech/tags/ftdi.md>), [github](<https://devfeed.tech/tags/github.md>), [jtag](<https://devfeed.tech/tags/jtag.md>), [jtagd](<https://devfeed.tech/tags/jtagd.md>), [linux](<https://devfeed.tech/tags/linux.md>), [quartus](<https://devfeed.tech/tags/quartus.md>), [tag-714da2192781](<https://devfeed.tech/tags/tag-714da2192781.md>), [tag-731e7c546bb6](<https://devfeed.tech/tags/tag-731e7c546bb6.md>), [tag-85443682aea4](<https://devfeed.tech/tags/tag-85443682aea4.md>), [tag-9d8cf70dc46c](<https://devfeed.tech/tags/tag-9d8cf70dc46c.md>), [tag-ca1a6d3656a5](<https://devfeed.tech/tags/tag-ca1a6d3656a5.md>), [tag-d14eb265d33e](<https://devfeed.tech/tags/tag-d14eb265d33e.md>), [tag-d47eddf0af85](<https://devfeed.tech/tags/tag-d47eddf0af85.md>), [usb](<https://devfeed.tech/tags/usb.md>), [usb-blaster](<https://devfeed.tech/tags/usb-blaster.md>), [wireshark](<https://devfeed.tech/tags/wireshark.md>)

## AI overview

The author reports two Linux jtagd bugs affecting USB Blaster clones. First, an uninitialized variable in the USB Blaster constructor can cause data meant for USB-Blaster II to enter the older protocol stream, corrupting USB traffic; this appears to occur after reconnecting a device without stopping jtagd and can end in a 30-second timeout and "JTAG chain broken" error. Second, the order of FT245 initialization commands may make some clones stop accepting data for about 250 ms, while jtagd immediately polls for the JTAG chain and waits up to 30 seconds. The author found that sending Set Latency Timer first avoids this behavior, though they are unsure whether it is a jtagd bug or clone-specific chip behavior. Both issues were observed from Quartus 18.1 through 25.1. The author provides a jtagd patcher and reports successful stress tests with patched clones.

## Source excerpt

Под Linux программатор USB Blaster иногда молчит 30 секунд и выдаёт "JTAG chain broken", а Wireshark показывает испорченный исходящий USB-трафик ещё до самого устройства. Doug Brown пару лет назад бросил разбираться с этими плавающими сбоями, а теперь вернулся к ним вместе с Claude, который разобрал закрытый jtagd. Причин оказалось две. Первая: забытая переменная в конструкторе, из-за которой в поток для старого USB Blaster могут попасть данные протокола USB-Blaster II; по наблюдениям автора, это случается, если переподключить программатор, не останавливая jtagd. Вторая: порядок команд инициализации FT245, после которого, судя по всему, часть клонов около 250 мс не принимает данные; автор признаётся, что не уверен, баг ли это jtagd или особенность чипов в клонах. Обе проблемы есть как минимум с Quartus 18.1 и до сих пор в Quartus 25.1; автор выложил патчер. Читать далее