cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
2,338 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
Highlighted
Adventurer
Adventurer
3,181 Views
Registered: ‎05-12-2017

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

Jump to solution

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
Highlighted
Xilinx Employee
Xilinx Employee
2,336 Views
Registered: ‎10-21-2010

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

Jump to solution

Hi,

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

 

0 Kudos
Highlighted
Adventurer
Adventurer
2,310 Views
Registered: ‎05-12-2017

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

Jump to solution
Updated CentOS 7
0 Kudos
Highlighted
Adventurer
Adventurer
3,182 Views
Registered: ‎05-12-2017

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

Jump to solution

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

View solution in original post

Highlighted
Moderator
Moderator
2,281 Views
Registered: ‎10-06-2016

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

Jump to solution
Hi @mpiechotka,

Can you mark your post as solution?

Thanks

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Adventurer
Adventurer
2,272 Views
Registered: ‎05-12-2017

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

Jump to solution
Sorry. @ibaie I was sure I already done it. Done
0 Kudos
Highlighted
Newbie
Newbie
2,010 Views
Registered: ‎02-03-2018

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

Jump to solution

Hello  

0 Kudos
Highlighted
Adventurer
Adventurer
2,003 Views
Registered: ‎05-12-2017

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

Jump to solution

@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