You are not logged in.

#1 2014-12-06 15:42:57

pkkul
Member
Registered: 2014-12-06
Posts: 4

USB-JTAG for DIGILENT spartan 3E

I have installed the Xilinx ISE webpack 14.7 on my arch system. The software works and the license was
accepted.
Now in order to communicate with the spartan 3e board from digilent one has to manually install the proper
driver. I followed the arch wiki ISE in order to get things working.  This means I installed fxload and from the AUR I installed:
usbdrv
adept-runtime 2.16.1-1
libftd2xx 1.1.12-2

Now one should add the vendor ID to the udev rules under /etc/udev/rules.d which for me now looks like
this:

ATTR{idVendor}=="03fd", MODE:="666"
ACTION=="add", ATTR{idVendor}=="03fd", ATTR{manufacturer}=="Digilent", MODE:="666", RUN+="/usr/bin/dftdrvdtch %s{busnum} %s{devnum}"

where 03fd is the ID of my device (i.e. it is visible with lsusb).

My problem is that I still cannot communicate with the device. There is a little diode that should light up once
the board has been properly set up in the OS but this doesn't happen. Would anyone know into which direction
I should go to make it work?

Offline

#2 2014-12-06 16:21:08

Bevan
Member
Registered: 2009-09-08
Posts: 104

Re: USB-JTAG for DIGILENT spartan 3E

Hi,

you mean the Basys2 baord? Did you install the Digilent Plugin as shown in the wiki (by copying the two libCseDigilent files)?

And what exactly did you try and at what point it fails? When you run impact, click on Boundary Scan and then on Initialize Chain and look at the output in the Console window. You should see some output of the Digilent Plugin there.

Also I think the onboard LED only flahes after the FPGA was programmed but I don't really know the Basys2 board.

Offline

#3 2014-12-06 16:38:21

pkkul
Member
Registered: 2014-12-06
Posts: 4

Re: USB-JTAG for DIGILENT spartan 3E

Hi,

Sorry my board is the S3E board.
Yes I copied the libCseDigilent files. And when I do the boundary scan I get the following error:

GUI --- Auto connect to cable...
INFO:iMPACT - Digilent Plugin: Plugin Version: 2.5.2
INFO:iMPACT - Digilent Plugin: no JTAG device was found.
AutoDetecting cable. Please wait.
*** WARNING ***: When port is set to auto detect mode, cable speed is set to default 6 MHz regardless of explicit arguments supplied for setting the baud rates
PROGRESS_START - Starting Operation.
If you are using the Platform Cable USB, please refer to the USB Cable Installation Guide (UG344) to install the libusb package.
Connecting to cable (Usb Port - USB21).
Checking cable driver.
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Cable connection failed.
Connecting to cable (Parallel Port - parport0).
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module parport_pc is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Cable connection failed.
Connecting to cable (Parallel Port - parport1).
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module parport_pc is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Cable connection failed.
Connecting to cable (Parallel Port - parport2).
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module parport_pc is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Cable connection failed.
Connecting to cable (Parallel Port - parport3).
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Linux release = 3.17.4-1-ARCH.
WARNING:iMPACT -  Module parport_pc is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
Cable connection failed.
PROGRESS_END - End Operation.
Elapsed time =      1 sec.
Cable autodetection failed.
WARNING:iMPACT:923 - Can not find cable, check cable setup !

Offline

#4 2014-12-06 17:01:57

Bevan
Member
Registered: 2009-09-08
Posts: 104

Re: USB-JTAG for DIGILENT spartan 3E

pkkul wrote:

Sorry my board is the S3E board.

Ah, ok. As far as I can see on that board a programming solution from Xilinx and not from Digilent is used. There is an unofficial driver available that works for me on other boards. To install it:

* git clone git://git.zerfleddert.de/usb-driver
* cd usb-driver
* make
* ./setup_pcusb

After that reload udev and unplug and replug the board. Then the necessary firmware should be installed and the LED should light up.

Offline

#5 2014-12-06 18:17:32

pkkul
Member
Registered: 2014-12-06
Posts: 4

Re: USB-JTAG for DIGILENT spartan 3E

Thank you, I installed the driver from the repository you mentioned. Unfortunately the repo hasn't been updated in a while and
I get an error message while running make. However, I installed the precompiled version and this seems to work (i.e. the LED
lights up)...
But now I perform a boundary scan under iMPACT and the board is not found. On the following page it is said
that ISE 13.2 crashes every time (I use ISE 14.7). Does this happen to you?

Offline

#6 2014-12-06 18:41:55

Bevan
Member
Registered: 2009-09-08
Posts: 104

Re: USB-JTAG for DIGILENT spartan 3E

make runs fine here. Maybe some package is missing. But looking into the index.html file building is unnecessary anyway since ISE includes a driver itself. So in theorey it should just work now. You could try running impact as root to see if it is a problem with permissions. But the installed udev rule should set it to 666...

I did not experience crashes with ISE 14.7.

Are you running your setup directly on your PC or in a virtual machine using usb passthrough? Just asking because the device changes its id when the firmware is loaded so if used inside of a VM the device has to be passed to the VM again.

Offline

#7 2014-12-06 21:46:04

pkkul
Member
Registered: 2014-12-06
Posts: 4

Re: USB-JTAG for DIGILENT spartan 3E

Permissions don't seem to be the problem. By the way I am running the setup directly on my PC.
In this case I should try to install an older version of ISE...

Offline

Board footer

Powered by FluxBB