painting
Posts: 1
Joined: Mon Nov 25, 2013 12:50 pm

JTAG scan chain interrogation failed: all ones

Wed Nov 27, 2013 2:04 pm

Dear all,

I try to follow (https://github.com/dwelch67/raspberrypi ... er/armjtag) to use Olimex-usb-ocd for debugging raspberry pi. But even during the hardware connection, I meet lots of problems.

Code: Select all

./openocd -f /home/painting/software/openocd-0.7.0/install/share/openocd/scripts/interface/olimex.cfg -f /home/painting/software/openocd-0.7.0/install/share/openocd/scripts/target/raspi.cfg
Open On-Chip Debugger 0.7.0 (2013-11-27-08:05)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kHz
none separate
raspi.arm
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: raspi.arm: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: 'arm11 target' JTAG error SCREG OUT 0x1f
Error: unexpected ARM11 ID code
Polling target raspi.arm failed, GDB will be halted. Polling again in 100ms
Polling target raspi.arm failed, GDB will be halted. Polling again in 300ms
Polling target raspi.arm failed, GDB will be halted. Polling again in 700ms
Polling target raspi.arm failed, GDB will be halted. Polling again in 1500ms
I check again the connection between P1 of raspberry and olimex-arm-usb-ocd as follows,
--------------------------------------
JTAG | raspberry
--------------------------------------
1 | P1-1
--------------------------------------
5 | P1-7
--------------------------------------
7 | P1-13
--------------------------------------
3 | P1-15
--------------------------------------
9 | P1-22
--------------------------------------
13 | P1-18
--------------------------------------
4 | P1-25
--------------------------------------
<raspi.cfg>:

Code: Select all

# Broadcom 2835 on Raspberry Pi

telnet_port 4444
#gdb_port 0
#tcl_port 0

#jtag_khz 1000
adapter_khz 1000

#jtag_nsrst_delay 400
#jtag_ntrst_delay 400

if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
} else {
   set  _CHIPNAME raspi
}

reset_config none

if { [info exists CPU_TAPID ] } {
   set _CPU_TAPID $CPU_TAPID
} else {
   set _CPU_TAPID 0x07b7617F
}
jtag newtap $_CHIPNAME arm -irlen 5 -expected-id $_CPU_TAPID

set _TARGETNAME $_CHIPNAME.arm
target create $_TARGETNAME arm11 -chain-position $_TARGETNAME
<olimex.cfg>:

Code: Select all

#interface configuration############################################################
# Olimex ARM-USB-OCD-H
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG"
ft2232_layout olimex-jtag
#ft2232_vid_pid 0x15ba 0x002b
ft2232_vid_pid 0x15ba 0x0003

dgenin
Posts: 1
Joined: Sun Apr 06, 2014 5:31 am

Re: JTAG scan chain interrogation failed: all ones

Sun Apr 06, 2014 5:37 am

Just resolved an identical looking issue by connecting the Pi's ground pin to pin 7 in the lower row, counting from the lower left (following the numbering convention in the referenced link). Had it plugged into the lower right most pin (lower pin 10). dwelch's howto specifically mentions pin 2 in the lower row as not being ground but it seems that pin 10 may not be ground either.

Return to “Troubleshooting”