Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
5,276 Views

USB-Blaster: Unable to read device chain - JTAG chain broken

I'm using Ubuntu14.04 and quartus14.1. When I run jtagconfig, I get: 

 

$ jtagconfig  

1) USB-Blaster [3-6] 

Unable to read device chain - JTAG chain broken 

 

The hardware is correct because I can read the JTAG chain using a old PC. 

 

Some extra information: 

 

$ cat /etc/udev/rules.d/51-usbblaster.rules# USB-Blaster# # from http://www.fpga-dev.com/altera-usb-blaster-with-ubuntu/# For Altera USB-Blaster permissions. 

SUBSYSTEM=="usb", 

ENV{DEVTYPE}=="usb_device", 

ATTR{idVendor}=="09fb", 

ATTR{idProduct}=="6001", 

MODE="0666", 

NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", 

RUN+="/bin/chmod 0666 %c" 

 

$ ls -l /etc/jtagd/pgm_parts.txt 

-rw-r--r-- 1 root root 921110 Jan 12 12:54 /etc/jtagd/pgm_parts.txt 

 

I have also re-run: 

$ sudo udevadm control --reload 

 

But nothing help! 

 

Any tips?
0 Kudos
10 Replies
Highlighted
Honored Contributor I
1,292 Views

I find the issue: The USB-blaster must first be powered from the board and then connected to the PC. 

So the procedure step by step: 

- connect the USB-Blaster to your board 

- power-on the board 

- plug the USB cable in the PC 

 

Doing so, jtagconfig is working: 

 

$ jtagconfig  

1) USB-Blaster [3-6] 

4BA00477 SOCVHPS 

02D120DD 5CSE(BA5|MA5)/5CSTFD5D5/..
0 Kudos
Highlighted
Honored Contributor I
1,292 Views

Well, even following this procedure doesn't work 100%. 

It's look like running quartus_hps first help jtagconfig working: 

 

$ quartus_hps -c1 -o PV -a 0x0 -s 262144 ./preloader-mkpimage.bin 

 

The conditions to make jtagconfig working are not clear to me.
0 Kudos
Highlighted
Honored Contributor I
1,292 Views

Charly78, 

 

I had same problem. Followed Andy1666's code in the following post: 

 

http://ubuntuforums.org/showthread.php?t=1441742 

 

Seems to have worked for me. I have no idea why.
0 Kudos
Highlighted
Honored Contributor I
1,292 Views

Charly78, 

 

Disregard previous. It is not working after all. Not only that, Quartus keeps crashing. Believe the Ubutu machine is going back to System 76, and I'm going back to Windows.
0 Kudos
Highlighted
Honored Contributor I
1,292 Views

OK, found something that really works (I think). See USB-Blaster section on the following: 

 

https://wiki.archlinux.org/index.php/altera_design_software#usb-blaster_download_cable_driver 

 

I've undone all previous attempts, made the changes listed in the arch wiki, and was able to program arrow SoCKit. Using Ubuntu 14.10.  

 

For now, it's working. Will post more if I run into problems again.
0 Kudos
Highlighted
Beginner
1,292 Views

Hi,

 

The link posted above (https://wiki.archlinux.org/index.php/altera_design_software#usb-blaster_download_cable_driver) does not work anymore, would it be possible to get the details?

 

I am having the exact same problem where jtagconfig would work randomly. I tried different solution that I found online but none of them seems to work systematically.

 

Thanks,

Ludovic

0 Kudos
Highlighted
New Contributor I
1,292 Views

Hi

 

I have had the same problem on Ubuntu 18.04 but got it working

 

Try to enter this in a terminal window

 

killall jtagd jtagd --user-start

Then my jtagconfig return this

 

intelFPGA/18.1/quartus/bin/jtagconfig 1) USB-Blaster [1-5] 031050DD 10M50DA(.|ES)/10M50DC

Wait 10 seconds before you try to program the FPGA so the restart takes effect.

 

 

Beside creating the rule (as i guess you have done) /etc/udev/rules.d/51-usbblaster.rules

 

I also did

sudo apt-get install libudev-dev

But I am not sure if that was necessary

 

Note that you have to redo

killall jtagd jtagd --user-start

Every time it loose connection, this is noway a good solution but at least you can now program it

 

 

Regards

 

 

 

 

 

 

0 Kudos
Highlighted
Beginner
427 Views

Hi @SThor8 

I tried implementing your solution on my Ubuntu 20.04 machine, but I get an

Command 'jtagd' not found

error.

Any suggestions on what to do?

I can get the USB-blaster to work  very sporadically, fiddling with plugging the usb cable in/out of the pc and powering the FPGA on/off

0 Kudos
Highlighted
New Contributor I
218 Views

 

I do nto have the 'jtagd' command either but 'killall jtagd' works

I do not know why it is so

 

 

0 Kudos
Highlighted
Beginner
59 Views

You have to run it from the file locally. First cd into the directory where you have Quartus installed and then to go to {whatever version number it is}/quartus/bin.

Check if the jtagd file is there with the command ls, and if it is, simply do the command he posted above but with ./jtagd in the front instead of just jtagd. This'll execute the file as if it was a command

 

0 Kudos