Skip to main content

Virtual JTAG (dependency)

Python modules to to installed

sudo apt-get install python3-pip
sudo pip install ftd2xx
sudo pip install bitstring
sudo pip install pyusb

Errors

  • OSError: libftd2xx.so: cannot open shared object file: No such file or directory

    Download ftdi driver from here Extract the archive and run following commands

    sudo cp /releases/build/lib* /usr/local/lib
    cd /usr/local/lib
    sudo ln -s libftd2xx.so.1.4.24 libftd2xx.so
    sudo chmod 0755 libftd2xx.so.1.4.24
    export LD_LIBRARY_PATH=/usr/local/lib
  • AttributeError: /usr/local/lib/libftd2xx.so: undefined symbol: stime

    Comment lines 1508,1509,1511,1512 from the /usr/local/lib/python<x.y>/dist-packages/ftd2xx/_ftd2xx_linux.py

  • DEVICE_NOT_OPENED

    Copy 99-libftdi.rules to /etc/udev/rules.d/

    Run following commands one by one

    sudo lsmod 
    sudo rmmod ftdi_sio 
    sudo rmmod usbserial 

    Now try sudo python3 scan_vjtag.py TRACEFILE.txt out.txt