Electronics > FPGA

Xilinx ISE - USB cable setup

(1/2) > >>

psysc0rpi0n:
Hello...

I was here trying to connect my old Digilent Basys2 Spartan-3E (250k gates) but I'm having trouble setting up the USB cable.
When I installed Xilinx ISE, I unchecked the "Install USB drivers" as recommended because looks like it doesn't work.

Then I tried to follow this steps here and here but I?m getting an error when I issue the following command:


--- Code: ---make lib32
--- End code ---

or even


--- Code: ---sudo make lib32
--- End code ---


This is the error:

--- Code: ---make LIBVER=32 clean all
make[1]: Entering directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'
rm -f libusb-driver.so libusb-driver-DEBUG.so
cc -Wall -fPIC -DUSB_DRIVER_VERSION="\"2016-09-25 23:23:24\""  -m32 -DJTAGKEY usb-driver.c xpcu.c parport.c config.c jtagmon.c jtagkey.c -o libusb-driver.so -ldl -lusb -lpthread -L/usr/local/lib -lftdi -L/usr/lib/x86_64-linux-gnu -lusb -shared
parport.c: In function ‘parport_transfer’:
parport.c:21:23: warning: variable ‘last_pp_write’ set but not used [-Wunused-but-set-variable]
  static unsigned char last_pp_write = 0;
                       ^
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libusb.so when searching for -lusb
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libusb.a when searching for -lusb
/usr/bin/ld: cannot find -lusb
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libpthread.a when searching for -lpthread
collect2: error: ld returned 1 exit status
Makefile:29: recipe for target 'libusb-driver.so' failed
make[1]: *** [libusb-driver.so] Error 1
make[1]: Leaving directory '/media/Storage/Software/Linux/Xilinx_ISE/usb-driver'
Makefile:35: recipe for target 'lib32' failed
make: *** [lib32] Error 2
--- End code ---

This probably means that I'm missing 32 bit versions of libusb or something like that but I don't know the names of this 32 bit version of this lib...

Can anyone help me? I'm using Debian Jessie 64bit!

Thanks

bingo600:
For 32bit-libs  see here - Get them
https://stackoverflow.com/questions/30236342/debian-jessie-32-bit-libraries


I have these notes for ISE  14.7 usb drivers (Mint-17-64bit)


But use make for 64-bit ... not make lib32


--- Code: ---Install via this one
http://svenand.blogdrive.com/archive/102.html

Tips
[url]https://wiki.archlinux.org/index.php/Xilinx_ISE_WebPACK#Xilinx_Cable_Drivers[/url]

New version of cable drivers:
http://www.george-smart.co.uk/wiki/Xilinx_JTAG_Linux

sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxload

--- End code ---



--- Quote ---*** Add to startup file ***
export XIL_IMPACT_USE_LIBUSB=1
export LD_PRELOAD=/opt/Xilinx14.7/usb-driver/libusb-driver.so

--- End quote ---

See
http://www.xilinx.com/support/answers/29310.htm


Maybe not debian , but on *buntu , incl Mint derrivatives ...
And MAKE SURE bash is your default shell NOT dash
dash FSCK's up a lot of things (well the expectation of bash) , when running advanced buildscripts like making GCC etc.


--- Code: ---To make bash the default shell do this

sudo dpkg-reconfigure dash
And select No when it asks whether to use/install dash as /bin/sh. 

Verify like this (reboot ot log out first)

$ sh
sh-4.3$ help
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

it says bash

--- End code ---

bingo600:
Ohh

The udev rules for Mint 17 , might work on debian too

psysc0rpi0n:
I tried about almost everything but sill can't make it work!  |O  |O  |O

andersm:

--- Quote from: psysc0rpi0n on September 26, 2016, 06:14:17 am ---This probably means that I'm missing 32 bit versions of libusb or something like that but I don't know the names of this 32 bit version of this lib...
--- End quote ---
See the multiarch HOWTO.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version