On-chip Debug with Cable#
VPU applications may be debugged over JTAG using either DSTREAM or FTDI cables.
DSTREAM#
The DSTREAM device can be used for debugging PVA applications.
FTDI Cable#
Debugging with an FTDI cable requires the installation of libftd2xx.so as a system driver for the
64bit Linux host machine. This can be obtained from https://ftdichip.com/drivers/d2xx-drivers/.
The library is available as a pre-compiled .so
, and can be installed following the instructions in
ReadMe.txt
.
Launching JTALK Server with a JTAG cable#
To launch a JTALK server with either of the JTAG options, use the system wide system-wide pva-sdk-2.7-jtalk
command.
This command allows specifying either a DSTREAM IP address or an FTDI device ID.
Note
Make sure to set required environment variables before running pva-sdk-2.7-jtalk
as below:
export PVA_GEN2_ASIP_PATH=<PATH_TO_ASIP_PROGRAMMER>
export PVA_GEN3_ASIP_PATH=<PATH_TO_ASIP_PROGRAMMER>
export LM_LICENSE_FILE=<PATH_TO_LICENSE_FILE>
# Alternatively to LM_LICENSE_FILE, SNPSLMD_LICENSE_FILE can be set:
export SNPSLMD_LICENSE_FILE=<TCP_PORT>@<LICENSE_SERVER>
export RDDI_DLL_PATH=<ARMDS_INSTALL_DIR>/sw/debugger/RDDI/redistributables/linux-x86_64/gcc-4.1.2/rel # Needed only for use with DSTREAM