Forum Discussion
USB-Blaster II malfunction
Hello Fakhrul,
It is good to hear that your hardware team was able to change the JTAG clock frequency of a USB-Blaster II under Windows without any issues.
In my case, this has never worked correctly, despite testing it on several different PCs. If your hardware team and I are using the same Programmer version under Windows, but the devices behave completely differently, the USB-Blaster itself appears to be almost the only remaining possible cause. Do you agree?
How can we proceed with troubleshooting?
As I mentioned previously, we absolutely need the ability to reduce the clock frequency, and the download is not always successful even when using the manual workarounds.
jtagconfig --setparam 1 JtagClockAutoAdjust 0
jtagconfig --setparam 1 JtagClock 6M
I provided the serial number of my USB-Blaster at the beginning of my inquiry (UBII-000012141). Is there anything unusual about this serial number? Just to exclude, we are affected by a cloned device.
Best regards
Frank
Hi Frank,
Thank you for the update. I understand that you need a TCK below 4 MHz for your design.
USB-Blaster III (UB3004546) Your serial number is in the range of early USB-Blaster III units. These units have a strong pull-up resistor (R45, 200 Ω) on the TDO line inside the cable. On some boards, including MAX 10, the device cannot pull TDO low enough against it, so detection and programming can fail. This matches what you see with this cable.
There are two options:
- Rework the cable: replace R45 with a 500 Ω resistor. I can share the R45 location on the cable board. Please note that a reworked unit may no longer be eligible for replacement.
- Keep the cable unmodified, and we will check the RMA option for it.
Please let me know which option you prefer.
USB-Blaster II (UBII-000012141) The resistor issue above does not apply to USB-Blaster II, so this cable needs to be reviewed separately. Our earlier lab test used a MAX 10 10M50DA, not the 10M08, which may explain why the failure did not reproduce. The information below will help us review this further.
Could you please share:
- Where the cables were purchased (distributor name).
- With auto-adjust on, the output of jtagconfig -n, followed by jtagconfig --getparam 1 JtagClock.
- At 6 MHz with auto-adjust off, how often programming fails (for example, 2 out of 10), plus the Programmer log from one failure.
- The lowest TCK that still works between 1 MHz and 4 MHz (for example 3M, 2M, 1M).
Regards,
Fakhrul
- FrankK4 days ago
Occasional Contributor
Dear Fakhrul,
Thank you for the additional information. We can replace the R45 pull-up resistor on the USB-Blaster III ourselves without any issues and subsequently validate the behavior of the USB-Blaster III.In the case of the USB-Blaster II, I cannot identify any correlation between the failure mode and the FPGA device being used. The analysis of the JTAG signals and transmitted commands clearly showed that the USB-Blaster II sends an invalid command sequence during the SCAN routine. As a result, the FPGA does not return the chip ID, causing FPGA device detection to fail. This behavior is independent of the FPGA device being used.
Here the answers to your questions:
- We ordered the programming cable from DigiKey.
- We had already performed this test in the past. Based on the jtagconfig settings, the failure mode varied (see logic analyzer screen short, some posts above) reproducible.
- Programming should never fail in a properly functioning system (not even 1 time out of 100). We also require the JTAG interface for the “Signal TAP Logic Analyzer” function, which is likewise affected by this issue.
- The lowest clock frequency that works intermittently is 4 MHz.
Best regards
Frank - FakhrulA_altera1 day ago
Regular Contributor
Hi Frank,
Thank you for the detailed answers, and for all the measurements you have shared. They have been very helpful.
Please go ahead and replace R45 on the USB-Blaster III. This change modifies the cable. If the cable is damaged by that rework, we will not be able to accept it for RMA. When you have checked detection and programming, I would be glad to hear how it behaves.
For the USB-Blaster II, UBII-000012141 is a normal cable serial, and buying from DigiKey is a normal supply path. I do not see a sign of a cloned cable from those details. A MAX 10 board here completed the scan at 400 kHz with Quartus Prime 25.1, and our engineering team also completed it with automatic adjustment and at 10 kHz. We have not seen the same SCAN result on our boards, so we do not have a further debug step for the II from the captures we have. Signal Tap uses the same JTAG clock.
I understand that, on your setup, 4 MHz is the lowest rate that works, and only some of the time. When 6 MHz or 4 MHz is stable, please leave automatic adjustment off.
Regards,
Fakhrul
- FrankK1 day ago
Occasional Contributor
Dear Fakhrul,
Thank you for your response. Changing the value of R45 on the USB-Blaster III did not alter the failure mode. This was in line with my expectations, as the JTAG interface voltage levels did not violate the specified logic-high or logic-low thresholds.Yesterday, I tested the USB-Blaster II on a Linux system. Its behavior was identical to what I observed on Windows, including the failure modes I described. This suggests that the operating system can be ruled out as the cause.
In my setup, the USB-Blaster does not operate as specified on either Linux or Windows. By contrast, neither you nor the engineering team have encountered these issues.
Would it be possible to lend me a USB-Blaster that you have already verified to be working correctly? Having a known-good unit for comparison would help me isolate the root cause through a process of elimination.
Best regards
Frank