Jump to content
  • 0

Cannot connect to USB cable


Maciej Piechotka

Question

It's probably n-th thread about it but I cannot manage to get the Vivado to recognize cable.

 

$ djtgcfg init -d Zybo
Initializing scan chain...
Found Device ID: 13722093
Found Device ID: 4ba00477

Found 2 device(s):
    Device 0: ARM_DAP
    Device 1: XC7Z010

However when I go to Vivado it shows no devices connected to local. I have tried various things from google but none seemed to work (such as installing cable drivers by script from /opt/Vivado/... etc.).

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

@jpeyron No. Last time when I installed as root Vivado HLS did not work.

With regard to system -i t is almost pure CentOS (I don't think I installed anything outside tools) installation in VM. I installed the digilent utils/libraries from rpm. I tried to run install script from vivado (as root). I'm not sure what else might be relevant.

Link to comment
Share on other sites

@jpeyron It seems to be something more complicated. I tried to open it in HW manager and I got following error:

 

open_hw_target
INFO: [Labtoolstcl 44-466] Opening hw_target localhost:3121/xilinx_tcf/Digilent/210279A42857A
ERROR: [Labtools 27-2269] No devices detected on target localhost:3121/xilinx_tcf/Digilent/210279A42857A.
Check cable connectivity and that the target board is powered up then
use the disconnect_hw_server and connect_hw_server to re-register this hardware target.
open_hw_target: Time (s): cpu = 00:00:03 ; elapsed = 00:00:17 . Memory (MB): peak = 6274.699 ; gain = 0.000 ; free physical = 13077 ; free virtual = 14425
ERROR: [Common 17-39] 'open_hw_target' failed due to earlier errors.
ERROR: [Labtoolstcl 44-513] HW Target shutdown. Closing target: localhost:3121/xilinx_tcf/Digilent/210279A42857A

The code in target seems to match the serial number of board:

Found 1 device(s)

Device: Zybo
    Product Name:   Digilent Zybo
    User Name:      Zybo
    Serial Number:  210279A42857

I reinstall the whole OS but w/out success.

Link to comment
Share on other sites

Hmm. I can program FPGA but if I try to run using system debugger it immediately disconnects:

:37:10 INFO	: Jtag cable 'Digilent Zybo 210279A42857A' is selected.
19:37:10 INFO	: 'jtag frequency' command is executed.
19:37:10 INFO	: Sourcing of '/home/mpiechotka/test/test.sdk/test_wrapper_hw_platform_0/ps7_init.tcl' is done.
19:37:10 INFO	: Context for 'APU' is selected.
19:37:10 INFO	: Hardware design information is loaded from '/home/mpiechotka/test/test.sdk/test_wrapper_hw_platform_0/system.hdf'.
19:37:10 INFO	: 'configparams force-mem-access 1' command is executed.
19:37:10 INFO	: Context for 'APU' is selected.
19:37:10 INFO	: 'stop' command is executed.
19:37:28 INFO	: 'ps7_init' command is executed.
19:37:28 INFO	: 'ps7_post_config' command is executed.
19:37:28 INFO	: Context for processor 'ps7_cortexa9_0' is selected.
19:37:28 INFO	: Processor reset is completed for 'ps7_cortexa9_0'.
19:37:29 INFO	: Context for processor 'ps7_cortexa9_0' is selected.
19:37:29 ERROR	: Memory write error at 0x100000. Invalid DAP ACK value: 0
19:37:29 INFO	: ----------------XSDB Script----------------
connect -url tcp:127.0.0.1:3121
source /home/mpiechotka/test/test.sdk/test_wrapper_hw_platform_0/ps7_init.tcl
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo 210279A42857A"} -index 0
loadhw -hw /home/mpiechotka/test/test.sdk/test_wrapper_hw_platform_0/system.hdf -mem-ranges [list {0x40000000 0xbfffffff}]
configparams force-mem-access 1
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo 210279A42857A"} -index 0
stop
ps7_init
ps7_post_config
targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo 210279A42857A"} -index 0
rst -processor
targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo 210279A42857A"} -index 0
dow /home/mpiechotka/test/test.sdk/test/Debug/test.elf
----------------End of Script----------------

If I try to use gdb instead it fails in ps7_init:

19:40:18 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
19:40:18 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
19:40:18 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
19:40:18 ERROR	: Unexpected error while launching program.
com.xilinx.sdk.targetmanager.TMException: 
    Cannot flush JTAG buffers

	at com.xilinx.sdk.targetmanager.internal.TM.connectToProcessor(TM.java:478)
	at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runTargetSetup(XilinxAppLaunchConfigurationDelegate.java:503)
	at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.runApplication(XilinxAppLaunchConfigurationDelegate.java:616)
	at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:309)
	at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...