OpenOCD: JTAG communication failure, check connection, ...

Hi all,

I have an Olimex LPC-E2214 and Olimex USB OpenOCD JTAG TINY. I installed their CD stuff with openOCD, Yagarto GCC, Eclipse and LPC-2294 examples.

I’ve seen similar postings and have tried several things they suggested, including slowing the Jtag speed, etc. Nothing seems to work. Some of the commented out stuff in the config file are the things I have tried so far.

I suspect that it could be the example code, which is really for the 2294 when the board is a 2214 with 1 MB Flash, 1 MB RAM.

I’ve also read about openOCD version issues.

As far as the jumpers on the board: the DBG_E jumper is IN, Boot 0 and Boot 1 are 11 (internal), BSL is OUT, JRST is OUT (not using RS-232).

Also, I cannot power the board from USB for some reason, even if I select the ext/usb jumper to USB. The power LED gives a quick blink then goes off. I’m powering it from an external power supply.

Sometimes the scan returned below is 0x3F, instead of 0x00.

Here’s the error messages:

Info: openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00 CEST)

Error: jtag.c:1253 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.

Error: jtag.c:1440 jtag_init(): trying to validate configured JTAG chain anyway…

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00

Error: jtag.c:1448 jtag_init(): Could not validate JTAG chain, exit

Here’s the config file:

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout olimex-jtag

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

#jtag_nsrst_delay 500

#jtag_ntrst_delay 500

#use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst separate

#reset_config trst_and_srst srst_pulls_trst

#jtag scan chain

#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag_device 4 0x1 0xf 0xe

#target configuration

daemon_startup reset

#target

#target arm7tdmi

target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4

run_and_halt_time 0 30

#target_script 0 reset oocd_flash2138.script

working_area 0 0x40000000 0x2000 nobackup

#working_area 0 0x40000000 0x40000 nobackup

#flash configuration

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14746 calc_checksum

#flash bank lpc2000 0x0 0x7D000 0 0 0 lpc2000_v2 14756 calc_checksum

For more information about the configuration files, take a look at:

http://openfacts.berlios.de/index-en.ph … p+Debugger

Please help!

Thanks,

Gil

Problem solved with this config:

telnet_port 4444

gdb_port 3333

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

reset_config trst_and_srst separate

jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 333

jtag_ntrst_delay 333

daemon_startup reset

target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4

run_and_halt_time 0 30

target_script 0 reset oocd_flash2294.script

working_area 0 0x40000000 0x4000 nobackup

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14746 calc_checksum

Thanks,

Gil

Hello All…

I have the same Error and i just can find the solution of my Problem. First of all i have to say that i could make debugging in the beginning. But 2 Days ago after i debugged some programm i write, i got this errors. I spent more than 2 days but i still don’t get it. I get this Errors:

$URL: http://svn.berlios.de/svnroot/repos/ope … /openocd.c $

Info: options.c:50 configuration_output_handler(): jtag_speed: 50, 50

Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported

Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.

Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway…

Error: embeddedice.c:191 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0x00000000)

Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.

Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway…

Warning: jtag.c:1211 jtag_check_value(): value captured during scan didn’t pass the requested check: captured: 0x0f check_value: 0x01 check_mask: 0x0f

Warning: jtag.c:1171 jtag_read_buffer(): in_handler reported a failed check

User: target.c:436 target_process_reset(): Timed out waiting for halt after reset

I tried everything, what i think it maybe helps. I changed FPC Cable, i checked the voltage source. Everything is fine!!!..

And i think it is impossible that i have a wrong armusbocd.cfg because i worked before !!!

Help me please!!!

Thank you…