• 0
varunnagpaal

Digilent HS3 cable fails to detect the target Zynq Z7020 FPGA device

Question

Posted (edited)

I recently purchased Digilent HS3 JTAG cable and wanted to configure PL of Zynq Z7020 device on a custom FPGA board called Snickerdoodle black

My overall setup is as follows:

  • Software: Windows 7, Digilent Adept latest, Vivado 2018.2 with cable drivers installed
  • Board files of my fpga board installed
  • My Zynq FPGA board can boot Ubuntu 16.04 Linux flashed onto an SD card  and I can also connect to Wifi through it.
  • Can connect to my FPGA board over USB-UART serially through teraterm

image.png.e357088c9df5db29273e4aaf631c4eb8.png

 

The board doesn't have the standard 14-pin Xilinx JTAG connector port and instead exposes majority of its multiplexed GPIO pins through up-facing connectors.  The JTAG interface to Zynq device is exposed as GPIO pins on the connector identified as J2 (see the 30-pin connector in top left corner of above board picture ).  I use jumper wires to manually wire the HS3 cable with the on board JTAG pins on the J2 connector. The relevant part of schematic as well map of JTAG wiring connections between HS3 and J2 connector are shown below:

 HS3 Pin                            Pin on J2 connector on board
1,3,5,7,9,11,13 (GND)     20 (GND, BLACK)
2 (VREF)                          25 (VCCO_0, RED)
4 (TMS)                           23 (TMS_0, GREEN)
6 (TCK)                            21 (TCK_0, YELLOW)
8 (TDO)                            24 (TDO_0, BLUE/PURPLE)
10(TDI)                            22 (TDI_0, WHITE)
12 —                                 —
14(SRST)                         19 (Zynq nRST/PS_SRST_B_501, ORANGE)

jtag-wiring.thumb.PNG.0e4e5102e1e2d16959ae1bc9ce773a1e.PNG

jtag-setup-6.thumb.jpeg.c6e1c470577769c5f73d6d2465b0f257.jpegjtag-setup-5.thumb.jpeg.4ace88b99b7c63197c7a62cb021cd7a2.jpeg  

jtag-setup-4.thumb.jpeg.c1c2ff5b195ae53d2ea4edf9661fe6eb.jpeg

jtag-setup-3.thumb.jpeg.73e9a993a3dd5067ad3f51f5073d7db3.jpegjtag-setup-2.thumb.jpeg.7dab39736e33e9d8035fde0b9d5a1f69.jpeg  

jtag-setup-1.thumb.jpeg.843224dad37b55e0c653bc0ea25350c0.jpeg

 

With SD card still inserted in the FPGA board and JTAG connections wired, I first plug-in the HS3 JTAG cable into USB port of my laptop. I then plug-in the micro-USB cable of FPGA board while holding the reset(SW2) button pressed, causing an on board white LED to start flashing. I wait for atleast 5 sec in order to skip booting Linux and instead go into JTAG mode. After releasing the button, the on-board white LED changes from blinking state to solid state indicating that the board is now in JTAG mode.

Next, I open Vivado. Create a new project with my custom FPGA board. I create a block design, add the Zynq IP , run block automation, add my custom IP, connect, run wiring automation, validate it, synthesize and implement it and write a bitstream without any errors. I then open hardware manager. I click auto-connect and it detects the Digilent HS3 cable. I also see the cable as USB serial converter under device manager. However, when I refresh target in hardware manager, it fails to detect the target Zynq FPGA device and shows me the following error:

 

Quote

open_hw
connect_hw_server
INFO: [Labtools 27-2285] Connecting to hw_server url TCP:localhost:3121
INFO: [Labtools 27-2222] Launching hw_server…
INFO: [Labtools 27-2221] Launch Output:

****** Xilinx hw_server v2018.2
**** Build date : Jun 14 2018-20:42:52
** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

connect_hw_server: Time (s): cpu = 00:00:02 ; elapsed = 00:00:09 . Memory (MB): peak = 904.773 ; gain = 0.000
open_hw_target
INFO: [Labtoolstcl 44-466] Opening hw_target localhost:3121/xilinx_tcf/Digilent/210299ABBF4A
ERROR: [Labtools 27-2269] No devices detected on target localhost:3121/xilinx_tcf/Digilent/210299ABBF4A.
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.
ERROR: [Common 17-39] ‘open_hw_target’ failed due to earlier errors.


vivado-jtag-error.thumb.png.55b1857b188a93acb85cb4e1b92042f1.png

 

I tried restarting my laptop to see anything changes but still it can’t seem to detect my target FPGA device. I have gone through my JTAG wiring again and it seems fine. If anyone spots any problem, please let me know. 

Would appreciate any help to get this running.

Thanks
V.

 

Edited by varunnagpaal
image upload issues

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @varunnagpaal,

I asked one of our design engineers about this and they let me know the following:

"Based on the information that was provided the pin mapping appears to be correct. There’s a lot of extra wiring there which will add additional capacitance which may end up causing timing issues, depending on how fast TCK is running. I’d try eliminating half the length of wire… probably by plugging the flywire that’s coming out of J2 directly into the pins on the HS3. Another thing I would try is reducing TCK which can be done by connecting to a Local Target in Hardware Manager (don’t use Auto connect) and selecting a frequency as shown in the image here (attached below)."

Please let us know if you have any questions about this.

Thank you,
JColvin

 

image001.png

Share this post


Link to post
Share on other sites
  • 0

@JColvin Hi. Thanks for the reply. I tried to directly connect flywires to the jtag cable thereby halving the wire length. Also changed jtag frequency to 10 MHz. I also tried all other frequencies. However the problem persists and my FPGA device is still not detected.

I get the same error as before:

Quote

ERROR: [Labtools 27-2269] No devices detected on target localhost:3121/xilinx_tcf/Digilent/210299ABBF4A.
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.
ERROR: [Common 17-39] 'open_hw_target' failed due to earlier errors.

image.thumb.png.b7e062c88ac1172982c32fdcc58f2f29.png

Share this post


Link to post
Share on other sites
  • 0

Beware when purchasing FPGA boards that aren't designed to be configured through a standard JTAG connector, or have a COM port compatible with the FPGA vendors' configuration tools. The problem might be an open JTAG chain. It's not the HS3 cable. Time to get out the schematics and do a bit of studying up on how JTAG works.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now