Closed hqjenny closed 6 years ago
for "ImportError: No module named site" We should use the xilinx provided python and library instead of the native one.
export PYTHONHOME=/opt/Xilinx/SDx/2017.1.op/tps/lnx64/python-2.7.5/
export PYTHONPATH=/opt/Xilinx/SDx/2017.1.op/tps/lnx64/python-2.7.5/lib/
export PATH=/opt/Xilinx/SDx/2017.1.op/tps/lnx64/python-2.7.5/bin/:$PATH
Debug Kernel with gdb
1st terminal: ${XILINX_SDX}/Vivado/bin/sdx_server --sdx-url
2nd terminal: run host
3rd terminal:
${XILINX_SDX}/lnx64/tools/gdb/gdb-7.9.1/bin/gdb ${XILINX_SDX}/data/emulation/cpu_em/generic_pcie/model/genericpciemodel
Then
target remote :PORT_NUMBER
https://www.xilinx.com/html_docs/xilinx2017_1/sdaccel_doc/topics/application-debug/concept_sw_emu_kernel_debug.html