---

** [tickets:#345] Error on openocd :  "JTAG tap: xc7.tap expected ", " IR 
capture error", "dtmcontrol is 0"**

**Status:** new
**Milestone:** 0.10.0
**Created:** Sat Mar 19, 2022 09:04 AM UTC by CHENG PO SHENG
**Last Updated:** Sat Mar 19, 2022 09:04 AM UTC
**Owner:** OpenOCD-Gerrit


Hi, I am trying to use openocd with gdb to my development (Nexys-Video) 
I keep getting the following errors : 
~~~
(base) sam@sam:~/openocd/tcl/board$ sudo openocd -f digilent_nexys_video.cfg 
Open On-Chip Debugger 0.11.0+dev-00615-gbe0d68eb6 (2022-03-16-16:02)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
start init...
Info : clock speed 30000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x13636093 (mfg: 0x049 (Xilinx), 
part: 0x3636, ver: 0x1)
Info : JTAG tap: xc7.tap tap/device found: 0xffffffff (mfg: 0x7ff (<invalid>), 
part: 0xffff, ver: 0xf)
Warn : JTAG tap: xc7.tap       UNEXPECTED: 0xffffffff (mfg: 0x7ff (<invalid>), 
part: 0xffff, ver: 0xf)
Error: JTAG tap: xc7.tap expected 1 of 35: 0x03622093 (mfg: 0x049 (Xilinx), 
part: 0x3622, ver: 0x0)
Error: JTAG tap: xc7.tap expected 2 of 35: 0x03620093 (mfg: 0x049 (Xilinx), 
part: 0x3620, ver: 0x0)
Error: JTAG tap: xc7.tap expected 3 of 35: 0x037c4093 (mfg: 0x049 (Xilinx), 
part: 0x37c4, ver: 0x0)
Error: JTAG tap: xc7.tap expected 4 of 35: 0x0362f093 (mfg: 0x049 (Xilinx), 
part: 0x362f, ver: 0x0)
Error: JTAG tap: xc7.tap expected 5 of 35: 0x037c8093 (mfg: 0x049 (Xilinx), 
part: 0x37c8, ver: 0x0)
Error: JTAG tap: xc7.tap expected 6 of 35: 0x037c7093 (mfg: 0x049 (Xilinx), 
part: 0x37c7, ver: 0x0)
Error: JTAG tap: xc7.tap expected 7 of 35: 0x037c3093 (mfg: 0x049 (Xilinx), 
part: 0x37c3, ver: 0x0)
Error: JTAG tap: xc7.tap expected 8 of 35: 0x0362e093 (mfg: 0x049 (Xilinx), 
part: 0x362e, ver: 0x0)
Error: JTAG tap: xc7.tap expected 9 of 35: 0x037c2093 (mfg: 0x049 (Xilinx), 
part: 0x37c2, ver: 0x0)
Error: JTAG tap: xc7.tap expected 10 of 3: 0x0362d093 (mfg: 0x049 (Xilinx), 
part: 0x362d, ver: 0x0)
Error: JTAG tap: xc7.tap expected 11 of 3: 0x0362c093 (mfg: 0x049 (Xilinx), 
part: 0x362c, ver: 0x0)
Error: JTAG tap: xc7.tap expected 12 of 3: 0x03632093 (mfg: 0x049 (Xilinx), 
part: 0x3632, ver: 0x0)
Error: JTAG tap: xc7.tap expected 13 of 3: 0x03631093 (mfg: 0x049 (Xilinx), 
part: 0x3631, ver: 0x0)
Error: JTAG tap: xc7.tap expected 14 of 3: 0x03636093 (mfg: 0x049 (Xilinx), 
part: 0x3636, ver: 0x0)
Error: JTAG tap: xc7.tap expected 15 of 3: 0x03647093 (mfg: 0x049 (Xilinx), 
part: 0x3647, ver: 0x0)
Error: JTAG tap: xc7.tap expected 16 of 3: 0x0364c093 (mfg: 0x049 (Xilinx), 
part: 0x364c, ver: 0x0)
Error: JTAG tap: xc7.tap expected 17 of 3: 0x03651093 (mfg: 0x049 (Xilinx), 
part: 0x3651, ver: 0x0)
Error: JTAG tap: xc7.tap expected 18 of 3: 0x03747093 (mfg: 0x049 (Xilinx), 
part: 0x3747, ver: 0x0)
Error: JTAG tap: xc7.tap expected 19 of 3: 0x03656093 (mfg: 0x049 (Xilinx), 
part: 0x3656, ver: 0x0)
Error: JTAG tap: xc7.tap expected 20 of 3: 0x03752093 (mfg: 0x049 (Xilinx), 
part: 0x3752, ver: 0x0)
Error: JTAG tap: xc7.tap expected 21 of 3: 0x03751093 (mfg: 0x049 (Xilinx), 
part: 0x3751, ver: 0x0)
Error: JTAG tap: xc7.tap expected 22 of 3: 0x03671093 (mfg: 0x049 (Xilinx), 
part: 0x3671, ver: 0x0)
Error: JTAG tap: xc7.tap expected 23 of 3: 0x036b3093 (mfg: 0x049 (Xilinx), 
part: 0x36b3, ver: 0x0)
Error: JTAG tap: xc7.tap expected 24 of 3: 0x036b7093 (mfg: 0x049 (Xilinx), 
part: 0x36b7, ver: 0x0)
Error: JTAG tap: xc7.tap expected 25 of 3: 0x036bb093 (mfg: 0x049 (Xilinx), 
part: 0x36bb, ver: 0x0)
Error: JTAG tap: xc7.tap expected 26 of 3: 0x036bf093 (mfg: 0x049 (Xilinx), 
part: 0x36bf, ver: 0x0)
Error: JTAG tap: xc7.tap expected 27 of 3: 0x03667093 (mfg: 0x049 (Xilinx), 
part: 0x3667, ver: 0x0)
Error: JTAG tap: xc7.tap expected 28 of 3: 0x03682093 (mfg: 0x049 (Xilinx), 
part: 0x3682, ver: 0x0)
Error: JTAG tap: xc7.tap expected 29 of 3: 0x03687093 (mfg: 0x049 (Xilinx), 
part: 0x3687, ver: 0x0)
Error: JTAG tap: xc7.tap expected 30 of 3: 0x03692093 (mfg: 0x049 (Xilinx), 
part: 0x3692, ver: 0x0)
Error: JTAG tap: xc7.tap expected 31 of 3: 0x03691093 (mfg: 0x049 (Xilinx), 
part: 0x3691, ver: 0x0)
Error: JTAG tap: xc7.tap expected 32 of 3: 0x03696093 (mfg: 0x049 (Xilinx), 
part: 0x3696, ver: 0x0)
Error: JTAG tap: xc7.tap expected 33 of 3: 0x036d5093 (mfg: 0x049 (Xilinx), 
part: 0x36d5, ver: 0x0)
Error: JTAG tap: xc7.tap expected 34 of 3: 0x036d9093 (mfg: 0x049 (Xilinx), 
part: 0x36d9, ver: 0x0)
Error: JTAG tap: xc7.tap expected 35 of 3: 0x036db093 (mfg: 0x049 (Xilinx), 
part: 0x36db, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Error: xc7.tap: IR capture error; saw 0x3f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Warn : target riscv.cpu examination failed
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Ready for Remote Connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
~~~
Problem : 
1. JTAG tap: xc7.tap expected ....
2. xc7.tap: IR capture error; saw 0x3f not 0x01
3. dtmcontrol is 0. Check JTAG connectivity/board power.
4. target riscv.cpu examination failed

Is this error come out if  hardware setting  went wrong ?  or it just about my  
"digilent_nexys_video.cfg" ?
Here is the digilent_nexys_video.cfg :
~~~
# SPDX-License-Identifier: GPL-2.0-or-later

# Digilent Nexys Video with Xilinx Artix-7 FPGA
# https://reference.digilentinc.com/programmable-logic/nexys-video/start

adapter driver ftdi
adapter speed 30000

ftdi device_desc "Digilent USB Device"
ftdi vid_pid 0x0403 0x6010

# channel 0 is dedicated for Digilent's DPTI Interface
# channel 1 is used for JTAG
ftdi channel 1


# just TCK TDI TDO TMS, no reset
ftdi layout_init 0x0088 0x008b
reset_config none

# Enable sampling on falling edge for high JTAG speeds.
ftdi tdo_sample_edge falling

transport select jtag
set chain_length 6
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen $chain_length
set _TARGETNAME_0 $_CHIPNAME.cpu
target create $_TARGETNAME_0 riscv -chain-position $_TARGETNAME_0
$_TARGETNAME_0 configure -work-area-phys 0x80000000 -work-area-size 10000 
-work-area-backup 1



#source [find interface/ftdi/digilent-hs1.cfg]
source [find cpld/xilinx-xc7.cfg]
source [find cpld/jtagspi.cfg]

echo "start init..."
init
halt
echo "Ready for Remote Connections"
~~~
Please let me  know any  recommands,  solutions !!
Thanks.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to