Open konosubakonoakua opened 1 month ago
[!IMPORTANT] If you just want to use digilent jtag, just do this step. libusb-driver.so is only needed, when DLC9G CABLE is used.
cd /opt/Xilinx/ISE/14.7/ISE_DS/common/bin/lin64/digilent
sudo ./install_digilent.sh
# selected libcsddigilent install to /home/rf/.cse
# or try /opt/Xilinx/ISE/14.7/ISE_DS/ISE
create desktop file like this:
[Desktop Entry]
Version=1.0
Name=Xilinx ISE Impact
Comment=Xilinx ISE 14.7 Impact
Exec=bash -c "export XIL_CSE_PLUGIN_DIR='/home/rf/.cse' && source /opt/Xilinx/ISE/14.7/ISE_DS/settings64.sh && /opt/Xilinx/ISE/14.7/ISE_DS/ISE/bin/lin64/impact"
Icon=/opt/Xilinx/ISE/14.7/ISE_DS/ISE/data/images/impact.png
StartupNotify=true
Type=Application
Categories=Application;
if busy, then sudo rm -f /tmp/digilent-adept2-*
rf@<hidden>:~$ sudo djtgcfg enum
Found 1 device(s)
Device: JtagSmt2 Device Transport Type: 00020001 (USB) Product Name: Digilent JTAG-SMT2 User Name: JtagSmt2 Serial Number: 210251190311
rf@
Found 1 device(s): Device 0: XC7A100T
[Desktop Entry]
Version=1.0
Name=Xilinx ISE
Comment=Xilinx ISE 14.7
Exec=bash -c "export LD_PRELOAD=/opt/Xilinx/ISE/usb-driver/libusb-driver.so && source /opt/Xilinx/ISE/14.7/ISE_DS/settings64.sh && /opt/Xilinx/ISE/14.7/ISE_DS/ISE/bin/lin64/ise"
Icon=/opt/xilinx/ISE/14.7/ISE_DS/ISE/data/images/pn-ise.png
StartupNotify=true
Type=Application
Categories=Application;
for ise impact (jtag scan)
[Desktop Entry]
Version=1.0
Name=Xilinx ISE Impact
Comment=Xilinx ISE 14.7 Impact
Exec=bash -c "export LD_PRELOAD=/opt/Xilinx/ISE/usb-driver/libusb-driver.so && source /opt/Xilinx/ISE/14.7/ISE_DS/settings64.sh && /opt/Xilinx/ISE/14.7/ISE_DS/ISE/bin/lin64/impact"
Icon=/opt/Xilinx/ISE/14.7/ISE_DS/ISE/data/images/impact.png
StartupNotify=true
Type=Application
Categories=Application;
for vivado 2024
[Desktop Entry]
Type=Application
Name=Vivado 2024.1
Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vivado/2024.1/bin/vivado"
Icon=/tools/Xilinx/Vivado/2024.1/doc/images/vivado_logo.png
StartupNotify=true
Categories=Application;
for vitis 2024
[Desktop Entry]
Type=Application
Name=Vitis 2024.1
Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis"
Icon=/tools/Xilinx/Vitis/2024.1/doc/images/ide_icon.ico
StartupNotify=true
Cat
egories=Application;
for DocNav
[Desktop Entry]
Type=Application
Name=DocNav 2024.1
Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis"
Icon=/tools/Xilinx/DocNav/resources/doc_nav_application_48.png
StartupNotify=true
Categories=Application;
for PDM
[Desktop Entry]
Type=Application
Name=PDM 2024.1
Exec=bash -c "source /tools/Xilinx/Model_Composer/2024.1/settings64.sh && source /tools/Xilinx/Vitis/2024.1/settings64.sh && source /tools/Xilinx/Vitis_HLS/2024.1/settings64.sh && source /tools/Xilinx/Vivado/2024.1/settings64.sh && /tools/Xilinx/Vitis/2024.1/bin/vitis"
Icon=/tools/Xilinx/PDM/2024.1/doc/images/pdm_logo64.png
StartupNotify=true
Categories=Application;
can both use Platfrom cable usb (DLC9G) & Digilent JtagSMT2.
locked by another hw_server:
ERROR: [Labtoolstcl 44-494] There is no active target available for server at localhost.
Targets(s) ", jsn-JTAG-SMT2-210251190311" may be locked by another hw_server.
sudo rm -rf /tmp/digilent*
kill $(ps -A | grep hw_server | awk '{ print $1 }')
sudo lsusb
connect_hw_server
INFO: [Labtools 27-2285] Connecting to hw_server url TCP:localhost:3121
INFO: [Labtools 27-2222] Launching hw_server...
INFO: [Labtools 27-2221] Launch Output:
****** Xilinx hw_server v2019.1
**** Build date : May 24 2019 at 15:06:40
** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
ERROR: [Labtoolstcl 44-494] There is no active target available for server at localhost.
Targets(s) ", jsn-JTAG-SMT2-210251190311" may be locked by another hw_server.
disconnect_hw_server localhost:3121
Solution:
sudo rm -rf /tmp/digilent* && ps -A | grep -q 'hw_server' && pkill -f hw_server
Finally:
troubleshooting
Xilinx JTAG Programmer (USB) cable not found
First of all, this guide assumes you have installed Xilinx ISE (version 14.7 is used here) into the default path of /opt/Xilinx/ISE/
Next, you will need to have GIT installed to get the required libraries. This approach does not use the official Xilinx libraries but a replica of them. You will also need libusb-dev which is required in the compiling of the drivers. You will also need build-essential metapackage for the compiler. On a 64-bit host, you will need to get the 32-bit version of libc6-dev-i386.
On 32-bit
On 64-bit
Clone usb-driver:
Compiling the Driver This step is once simple command, but the most important. It compiles the cable driver required. There are two versions depending on the version (32-/64-bit) of Xilinx ISE you have. Firstly change into the source directory created in the previous step. Then you need to issue the make command.
then we can use
xmd
to verify the connectionswith id code & part name, we can say that the connection between jtag cable & fpga chip is good.
Then we open iMPACT-->double click
Boundary Scan
-->Right click on blank area:initialize chain
--->see the jtag daisy link.links