# Error message: JTAG instruction failed

**URL:** <https://community.sparkfun.com/t/error-message-jtag-instruction-failed/6794>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 19, 2008, 4:42pm UTC](https://community.sparkfun.com/t/error-message-jtag-instruction-failed/6794 "2008-03-19T16:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benf](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Benf](https://community.sparkfun.com/u/Benf)\
**Post date:** [March 19, 2008, 4:42pm UTC](https://community.sparkfun.com/t/error-message-jtag-instruction-failed/6794/1 "2008-03-19T16:42:42Z")

</div>

Greetings all,

This is my first post, as I am new into this forum.

I have an CS-E9302 dev board and the ARM-USB-OCD

Everything appeared to install OK.

I have loaded and compiled 2 projects demo2106\_blink\_flash and lpc-l2294 which compiled OK without errors.

In Eclipse(3.3) I launch - Run/External Tools/OpenOCD, I get this error message in the Eclipse C/C++ console message center:

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

Error: embeddedice.c:181 embeddedice\_build\_reg\_cache(): unknown EmbeddedICE version (comms ctrl: 0x00000000)

Error: arm\_jtag.c:38 arm\_jtag\_set\_instr\_error\_handler(): setting the new JTAG instruction failed, debugging is likely to be broken

The LED went from solid green to flashing red/green very fast.

Any Ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![\_Mitto](https://avatars.discourse-cdn.com/v4/letter/_/e9c0ed/32.png) [@\_Mitto](https://community.sparkfun.com/u/_Mitto)\
**Post date:** [April 4, 2008, 4:30pm UTC](https://community.sparkfun.com/t/error-message-jtag-instruction-failed/6794/2 "2008-04-04T16:30:14Z")

</div>

Hi!

I had the same error.

I’m using student sistem on our faculty for electrotechnic in Ljubljana [http://www.s-arm.si](http://www.s-arm.si)(slo)

I solved this error with delay:

Edit your configuration file for openocd and use this in it:

```auto
jtag_speed 9
jtag_nsrst_delay 333
jtag_ntrst_delay 333

```

Hope that it will work for you.

---

<div class="post-metadata">

**Author:** ![Benf](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Benf](https://community.sparkfun.com/u/Benf)\
**Post date:** [April 8, 2008, 5:15pm UTC](https://community.sparkfun.com/t/error-message-jtag-instruction-failed/6794/3 "2008-04-08T17:15:21Z")

</div>

Thanks Mitto,

It turns out that for Run\External Tools\Open External Tools Dialog:

the External tool for:

Main/Location: C:\GCCFD\openocd\bin\openocd-ftd2xx.exe

Arguments:

was set to ARM7 not my new one:

C:\GCCFD\openocd\bin\openocd-ftd2xx.exe

Also, to get the JTAG to work in debug perspective, I had to Configure a new launch setting under the Embedded debug(Native) tree

Run/Open debug Dialog/

with the c/C++ application set to main.out

GDB debugger to C:\gccfd\yagarto\bin\arm-elf-gdb.exe

and set the “Run” Commands to what I wanted.

Note: I am using Eclipse 3.3.0 which has different dialog boxes that the James Lynch tutorial ver 4 (which is excellant btw) that came with my CD.
