UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor zhwuwu
Visitor
9,042 Views
Registered: ‎05-21-2015

Multiple jtag in XMD

Hi

 

We are connecting 2 usb-jtag to the same linux machine:

 

Bus 001 Device 025: ID 03fd:0008 Xilinx, Inc.

Bus 001 Device 002: ID 03fd:0008 Xilinx, Inc.

 

This is the version for xmd:

 

****** Xilinx Microprocessor Debugger (XMD) Engine
****** XMD v2014.4 (64-bit)
  **** SW Build 1071353 on Tue Nov 18 16:44:35 MST 2014
    ** Copyright 1986-2014 Xilinx, Inc. All Rights Reserved.

 

I did:

XMD% verbose 7
Verbose Mode turned ON

0
XMD% cableesn
XMD_DEBUG - Executing Command: xrcableesn
XMD_DEBUG - Xilinx hw_server URL=TCP::3121
XMD_DEBUG - Connecting to hw_server at TCP::3121
XMD_DEBUG - Failed to connect to hw_server at TCP::3121
XMD_DEBUG - Attempting to launch hw_server at TCP::3121
XMD_DEBUG - Connected to hw_server at TCP::3121
XMD_DEBUG - Target 0: jsn-DLC10-000017df39ad01=unknown/unknown/
XMD_DEBUG - Target 1: jsn-DLC9LP-000010088e9f01=unknown/unknown/
unknown/unknown/,unknown/unknown/

 

I know we should use

connect *** -cable esn <ESN#> to specify the jtag to use.

But since I got "unknown" in cableesn, what should I fit in <ESN#>?

 

Thanks

Zhenghui Wu

 

0 Kudos
6 Replies
Community Manager
Community Manager
8,969 Views
Registered: ‎07-23-2012

Re: Multiple jtag in XMD

You can provide the port number to connect to one of the two cables. Please refer to table 10-8 of http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/est_rm.pdf for details.

You can get the cable esn number from Chipscope Analyzer as well.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Visitor zhwuwu
Visitor
8,906 Views
Registered: ‎05-21-2015

Re: Multiple jtag in XMD

Hi

 

I don't think it's useful:

 

XMD% xrjtagchain -cable port USB21
XMD_DEBUG - Executing Command: xrjtagchain -cable port USB21
XMD_DEBUG - Xilinx hw_server URL=TCP::3121
XMD_DEBUG - Connecting to hw_server at TCP::3121
XMD_DEBUG - Failed to connect to hw_server at TCP::3121
XMD_DEBUG - Attempting to launch hw_server at TCP::3121
XMD_DEBUG - Connected to hw_server at TCP::3121
XMD_DEBUG - Getting target list
XMD_DEBUG - Available targets and devices:
XMD_DEBUG - Target 0 -> jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[0]: unknown/unknown/
XMD_DEBUG - Target 1 -> jsn-DLC10-000017df39ad01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[1]: unknown/unknown/
XMD_DEBUG - Using target jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Opened Node jsn-DLC9LP-000010088e9f01 on TCP::3121
XMD_DEBUG - Successfully opened a connection to JTAG cable: jsn-DLC9LP-000010088e9f01 (6000000Hz)
XMD_DEBUG - Performing Boundary Scan
XMD_DEBUG -   Device 0 -> jsn-DLC9LP-000010088e9f01-236b3093-0
XMD_DEBUG - Obtaining properties for Device 1
XMD_DEBUG - Successfully obtained properties for Device 1.
XMD_DEBUG -  m_idcode = 0x236b3093
XMD_DEBUG -  m_irLength = 24
XMD_DEBUG -  m_deviceName = xc7v2000t
XMD_DEBUG -  m_configSupported = 1
XMD_DEBUG -  m_xicomConfigSupported = 1
XMD_DEBUG -  m_sysMonSupported = 1
XMD_DEBUG -  m_userChainCount = 4
XMD_DEBUG - Destruct JtagCable.
X  devicenr 1 idcode 0x236b3093 irlength 24 partname xc7v2000t isfpga 1#$

 

 

XMD% xrjtagchain -cable port USB22
XMD_DEBUG - Executing Command: xrjtagchain -cable port USB22
XMD_DEBUG - Xilinx hw_server URL=TCP::3121
XMD_DEBUG - Connecting to hw_server at TCP::3121
XMD_DEBUG - Failed to connect to hw_server at TCP::3121
XMD_DEBUG - Attempting to launch hw_server at TCP::3121
XMD_DEBUG - Connected to hw_server at TCP::3121
XMD_DEBUG - Getting target list
XMD_DEBUG - Available targets and devices:
XMD_DEBUG - Target 0 -> jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[0]: unknown/unknown/
XMD_DEBUG - Target 1 -> jsn-DLC10-000017df39ad01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[1]: unknown/unknown/
XMD_DEBUG - Using target jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Opened Node jsn-DLC9LP-000010088e9f01 on TCP::3121
XMD_DEBUG - Successfully opened a connection to JTAG cable: jsn-DLC9LP-000010088e9f01 (6000000Hz)
XMD_DEBUG - Performing Boundary Scan
XMD_DEBUG -   Device 0 -> jsn-DLC9LP-000010088e9f01-236b3093-0
XMD_DEBUG - Obtaining properties for Device 1
XMD_DEBUG - Successfully obtained properties for Device 1.
XMD_DEBUG -  m_idcode = 0x236b3093
XMD_DEBUG -  m_irLength = 24
XMD_DEBUG -  m_deviceName = xc7v2000t
XMD_DEBUG -  m_configSupported = 1
XMD_DEBUG -  m_xicomConfigSupported = 1
XMD_DEBUG -  m_sysMonSupported = 1
XMD_DEBUG -  m_userChainCount = 4
XMD_DEBUG - Destruct JtagCable.
X  devicenr 1 idcode 0x236b3093 irlength 24 partname xc7v2000t isfpga 1#$

 

I believe 000010088e9f01 and 000017df39ad01 are the esn for the cable.

But seems I can't use this to chose which cable I want to use.

 

XMD% xrjtagchain -cable esn 000017df39ad01
XMD_DEBUG - Executing Command: xrjtagchain -cable esn 000017df39ad01
XMD_DEBUG - Xilinx hw_server URL=TCP::3121
XMD_DEBUG - Connecting to hw_server at TCP::3121
XMD_DEBUG - Failed to connect to hw_server at TCP::3121
XMD_DEBUG - Attempting to launch hw_server at TCP::3121
XMD_DEBUG - Connected to hw_server at TCP::3121
XMD_DEBUG - Getting target list
XMD_DEBUG - Available targets and devices:
XMD_DEBUG - Target 0 -> jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[0]: unknown/unknown/
XMD_DEBUG - Target 1 -> jsn-DLC10-000017df39ad01
XMD_DEBUG - Getting target esn
XMD_DEBUG - ESN[1]: unknown/unknown/
XMD_DEBUG - Verifying user esn
WARNING: Invalid Cable ESN, using first available cable
XMD_DEBUG - Using target jsn-DLC9LP-000010088e9f01
XMD_DEBUG - Opened Node jsn-DLC9LP-000010088e9f01 on TCP::3121
XMD_DEBUG - Successfully opened a connection to JTAG cable: jsn-DLC9LP-000010088e9f01 (6000000Hz)
XMD_DEBUG - Performing Boundary Scan
XMD_DEBUG - Device 0 -> jsn-DLC9LP-000010088e9f01-236b3093-0
XMD_DEBUG - Obtaining properties for Device 1
XMD_DEBUG - Successfully obtained properties for Device 1.
XMD_DEBUG - m_idcode = 0x236b3093
XMD_DEBUG - m_irLength = 24
XMD_DEBUG - m_deviceName = xc7v2000t
XMD_DEBUG - m_configSupported = 1
XMD_DEBUG - m_xicomConfigSupported = 1
XMD_DEBUG - m_sysMonSupported = 1
XMD_DEBUG - m_userChainCount = 4
XMD_DEBUG - Destruct JtagCable.
X devicenr 1 idcode 0x236b3093 irlength 24 partname xc7v2000t isfpga 1#$

 

And it seems that the pdf file you provided is not for 2014.4?

 

Thanks

Zhenghui

0 Kudos
8,711 Views
Registered: ‎03-09-2012

Re: Multiple jtag in XMD

Hi, same problem here.  I was able to connect to the second device (Target 1) with:

 

XMD% xrjtagchain -cable esn unknown/unknown

 

But that's definitely a terrible hack.  Has anyone discovered a better approach?

0 Kudos
Scholar sampatd
Scholar
8,686 Views
Registered: ‎09-05-2011

Re: Multiple jtag in XMD

0 Kudos
Visitor eshop
Visitor
7,080 Views
Registered: ‎07-21-2008

Re: Multiple jtag in XMD

Hi, we have encountered the same problem as zhwuwu. XMD sees two JTAG connectors but find both of their ESN to be "unknown/unknown/", and we are unable to select which JTAG connector to use for programming.

 

The version is 2014.4, we are using xilinx platform cables, and the suggestion from aarondanielson doesn't work for us -- it strictly selects the first JTAG connector. Is there any way to work around XMD's inability to figure out the ESN?

 

XMD% connect mb mdm -cable type xilinx_tcf esn unknown/unknown/

XMD_DEBUG - Executing Command: xtargets -listSysID

XMD_DEBUG - Executing Command: xconnect mb mdm -cable type xilinx_tcf esn unknown/unknown/

XMD_DEBUG - Xilinx hw_server URL=TCP::3121

XMD_DEBUG - Connecting to hw_server at TCP::3121

XMD_DEBUG - Connected to hw_server at TCP::3121

XMD_DEBUG - Getting target list

XMD_DEBUG - Available targets and devices:

XMD_DEBUG - Target 0 -> jsn-DLC10-000016e6524e01

XMD_DEBUG - Getting target esn

XMD_DEBUG - ESN[0]: unknown/unknown/

XMD_DEBUG - Target 1 -> jsn-DLC10-000016e6641701

XMD_DEBUG - Getting target esn

XMD_DEBUG - ESN[1]: unknown/unknown/

XMD_DEBUG - Verifying user esn

XMD_DEBUG - Using target jsn-DLC10-000016e6524e01

XMD_DEBUG - Opened Node jsn-DLC10-000016e6524e01 on TCP::3121

XMD_DEBUG - Successfully opened a connection to JTAG cable: jsn-DLC10-000016e6524e01 (6000000Hz)

XMD_DEBUG - Performing Boundary Scan

XMD_DEBUG -   Device 0 -> jsn-DLC10-000016e6524e01-13636093-0

XMD_DEBUG - Obtaining properties for Device 1

XMD_DEBUG - Successfully obtained properties for Device 1.

XMD_DEBUG -  m_idcode = 0x13636093

XMD_DEBUG -  m_irLength = 6

XMD_DEBUG -  m_deviceName = xc7a200t

XMD_DEBUG -  m_configSupported = 1

XMD_DEBUG -  m_xicomConfigSupported = 1

XMD_DEBUG -  m_sysMonSupported = 1

XMD_DEBUG -  m_userChainCount = 4

XMD_DEBUG - Create new CableInterface for device # 1. Total 1 interfaces

XMD_DEBUG - Got MicroBlaze Configuration Register: 1b 0 60 3 ff ff ff 3f 0 0 0 0 ff ff ff 3f 0 0 0 0 e4 0 0 21 0 0 0 0 0 0 0 0

XMD_DEBUG - First 32 bit of MB configStr: 360001b

XMD_DEBUG - vector base = 0x00000000

etc.

 

0 Kudos
Newbie gibsjose
Newbie
6,928 Views
Registered: ‎03-14-2016

Re: Multiple jtag in XMD

I know this is a bit old, but the solution was so frustratingly simple that I had to post it...

 

As you have seen, you can specify the port to connect to using

 

... -cable port <port number> ...

 

However, it seems that XMD will try to auto-connect and select the last connected JTAG device, which defeats the purpose of specifying the port.

 

The solution is to specify the cable type before the port number. For example:

 

... -cable type xilinx_platformusb port USB21 ...

 


You can try this out by using the xrjtagchain command and ensure that it connects to the proper port each time.

 

Also, you can see a list of all JTAGs connected and their ESN and Port Number by running:

xrcableesn
0 Kudos