JTAG communication failure, check connection, JTAG interface, target power etc.

Shakthi Kannan shakthimaan at gmail.com
Wed Jan 7 14:32:38 CET 2009


Hi,

I am trying to connect the debug board v3 with FreeRunner to a Debian
system (running 2.6.26-1-686), and I am getting the following errors:

=== ERROR ===

 $ sudo openocd -f openocd.cfg
Open On-Chip Debugger 1.0 (2008-08-11-18:16) svn:unknown
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info:    options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info:    options.c:50 configuration_output_handler(): Open On-Chip
Debugger 1.0 (2008-08-11-18:16) svn:unknown
Error:   jtag.c:1338 jtag_examine_chain(): JTAG communication failure,
check connection, JTAG interface, target power etc.
Error:   jtag.c:1543 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x20
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1552 jtag_init_inner(): Could not validate JTAG chain, exit
Error:   jtag.c:1338 jtag_examine_chain(): JTAG communication failure,
check connection, JTAG interface, target power etc.
Error:   jtag.c:1543 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x20
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1431 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x00
Error:   jtag.c:1552 jtag_init_inner(): Could not validate JTAG chain, exit

=== END ===

Initially, I did:

sudo modprobe ftdi_sio vendor=0x1457 product=0x5118

Plugged in the debug board to the desktop, then powered on the FR to
NAND boot, and then tried running openocd with openocd.cfg.

=== openocd.cfg ===

telnet_port 4444
gdb_port 3333
interface ft2232
jtag_speed 0
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey"
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0x3
daemon_startup attach
target arm920t little reset_run 0 arm920t
working_area 0 0x200000 0x4000 backup
run_and_halt_time 0 5000
ft2232_device_desc "Debug Board for Neo1973"

=== END ===

=== /var/log/messages ===

Jan  7 18:50:13 debian kernel: [  321.832017] usbcore: registered new
interface driver usbserial
Jan  7 18:50:13 debian kernel: [  321.832017] usbserial: USB Serial
support registered for generic
Jan  7 18:50:13 debian kernel: [  321.832017] usbcore: registered new
interface driver usbserial_generic
Jan  7 18:50:13 debian kernel: [  321.832017] usbserial: USB Serial Driver core
Jan  7 18:50:13 debian kernel: [  321.849430] usbserial: USB Serial
support registered for FTDI USB Serial Device
Jan  7 18:50:13 debian kernel: [  321.849472] usbcore: registered new
interface driver ftdi_sio
Jan  7 18:50:13 debian kernel: [  321.849476] ftdi_sio: v1.4.3:USB
FTDI Serial Converters Driver

Jan  7 18:51:01 debian kernel: [  370.172638] usb 3-2: new full speed
USB device using uhci_hcd and address 2
Jan  7 18:51:01 debian kernel: [  370.378231] usb 3-2: configuration
#1 chosen from 1 choice
Jan  7 18:51:01 debian kernel: [  370.380558] hub 3-2:1.0: USB hub found
Jan  7 18:51:01 debian kernel: [  370.382496] hub 3-2:1.0: 4 ports detected
Jan  7 18:51:02 debian kernel: [  370.494499] usb 3-2: New USB device
found, idVendor=0451, idProduct=2046
Jan  7 18:51:02 debian kernel: [  370.494510] usb 3-2: New USB device
strings: Mfr=0, Product=0, SerialNumber=0
Jan  7 18:51:02 debian kernel: [  370.707045] usb 3-2.1: new full
speed USB device using uhci_hcd and address 3
Jan  7 18:51:02 debian kernel: [  370.869629] usb 3-2.1: configuration
#1 chosen from 1 choice
Jan  7 18:51:02 debian kernel: [  370.873625] ftdi_sio: Ignoring
serial port reserved for JTAG
Jan  7 18:51:02 debian kernel: [  370.882178] ftdi_sio 3-2.1:1.1: FTDI
USB Serial Device converter detected
Jan  7 18:51:02 debian kernel: [  370.882220] ftdi_sio: Detected FT2232C
Jan  7 18:51:02 debian kernel: [  370.882269] usb 3-2.1: FTDI USB
Serial Device converter now attached to ttyUSB0
Jan  7 18:51:02 debian kernel: [  370.887082] usb 3-2.1: New USB
device found, idVendor=1457, idProduct=5118
Jan  7 18:51:02 debian kernel: [  370.887082] usb 3-2.1: New USB
device strings: Mfr=1, Product=2, SerialNumber=0
Jan  7 18:51:02 debian kernel: [  370.887082] usb 3-2.1: Product:
Debug Board for Neo1973
Jan  7 18:51:02 debian kernel: [  370.887082] usb 3-2.1: Manufacturer: OpenMoko
----------
Jan  7 18:51:52 debian kernel: [  421.257984] usb 3-2.1: usbfs:
interface 1 claimed by ftdi_sio while 'openocd' sets config #1

Jan  7 18:52:48 debian kernel: [  476.755299] usb 3-2.1: usbfs:
interface 1 claimed by ftdi_sio while 'openocd' sets config #1
Jan  7 18:53:04 debian kernel: [  493.619449] usb 3-2.1: usbfs:
interface 1 claimed by ftdi_sio while 'openocd' sets config #1
Jan  7 18:55:06 debian kernel: [  615.605938] usb 3-2.1: usbfs:
interface 1 claimed by ftdi_sio while 'openocd' sets config #1

=== END ===

I tried disconnecting and re-connecting the USB cable as mentioned here:
http://wiki.openmoko.org/wiki/Neo1973_OpenOCD#JTAG_communication_failure

but, to no avail. I also tried a different USB cable. Appreciate any
inputs. Thanks!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com



More information about the devel mailing list