cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mpiechotka
Adventurer
Adventurer
2,919 Views
Registered: ‎05-12-2017

JTAG 'connection drops' when trying to launch ARM application on Zybo (ZYNQ)

Jump to solution

I'm unable to use device in any frequency other than 125 kHz - Vivado HW manager doesn't list programmable devices even. With 125 kHz I'm able to program the device and I can even set highier frequencies in xsct console.

 

However I'm unable to run the C program:

0:51:48 INFO	: 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo 210279A42857A" && level==0} -index 1' command is executed.
00:51:48 INFO	: 'fpga -state' command is executed.
00:51:48 INFO	: Connected to target on host '127.0.0.1' and port '3121'.
00:51:48 INFO	: Jtag cable 'Digilent Zybo 210279A42857A' is selected.
00:51:53 INFO	: 'jtag frequency' command is executed.
00:51:53 INFO	: Sourcing of '/home/mpiechotka/test/test.sdk/test_wrapper_hw_platform_0/ps7_init.tcl' is done.
00:51:56 ERROR	: no targets found with "name =~"APU*" && jtag_cable_name =~ "Digilent Zybo 210279A42857A"". available targets:
  1  DAP (Cannot flush JTAG server queue. ftdi_read_data failed: usb bulk read failed)
  4* xc7z010
  5  whole scan chain (ftdi_read_data failed: usb bulk read failed)

Than Vivado claims that connection to HW server disappeared. When I try to use GDB I get slightly different error and it does not drop the connection:

 

00:51:02 WARN	: Given IPC port value is invalid. Using default port 2350
00:51:02 WARN	: Given XMD timeout value is invalid. Using default value of 50000
00:51:05 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
00:51:05 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
00:51:07 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
00:51:07 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
00:51:07 WARN	: Given XMD transaction timeout value is invalid. Using default value of 60000 milli seconds
00:51:07 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)
0 Kudos
1 Solution

Accepted Solutions
mpiechotka
Adventurer
Adventurer
3,762 Views
Registered: ‎05-12-2017

Found the problem - I440FX emulation (default) have broken usb redirection. After switching to Q35/nec-xhci it started working.

View solution in original post

7 Replies
sadanan
Xilinx Employee
Xilinx Employee
2,917 Views
Registered: ‎10-21-2010

Hi,

Looks like a problem with cable drivers. Which OS are you using?

 

0 Kudos
mpiechotka
Adventurer
Adventurer
2,891 Views
Registered: ‎05-12-2017
Updated CentOS 7
0 Kudos
mpiechotka
Adventurer
Adventurer
3,763 Views
Registered: ‎05-12-2017

Found the problem - I440FX emulation (default) have broken usb redirection. After switching to Q35/nec-xhci it started working.

View solution in original post

ibaie
Xilinx Employee
Xilinx Employee
2,862 Views
Registered: ‎10-06-2016
Hi @mpiechotka,

Can you mark your post as solution?

Thanks

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
mpiechotka
Adventurer
Adventurer
2,853 Views
Registered: ‎05-12-2017
Sorry. @ibaie I was sure I already done it. Done
0 Kudos
zulus.23
Newbie
Newbie
2,591 Views
Registered: ‎02-03-2018

Hello  

0 Kudos
mpiechotka
Adventurer
Adventurer
2,584 Views
Registered: ‎05-12-2017

@zulus.23It depends on what you use to manage the VM. For example in libvirt you need to change machine attribute, for commandline you need to specify machine type in the first place etc.

0 Kudos