# problem with cs-e9302 and arm-jtag-tiny

**URL:** <https://community.sparkfun.com/t/problem-with-cs-e9302-and-arm-jtag-tiny/10353>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 7, 2009, 5:41pm UTC](https://community.sparkfun.com/t/problem-with-cs-e9302-and-arm-jtag-tiny/10353 "2009-03-07T17:41:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bassem\_Fahmy](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bassem\_Fahmy](https://community.sparkfun.com/u/Bassem_Fahmy)\
**Post date:** [March 7, 2009, 5:41pm UTC](https://community.sparkfun.com/t/problem-with-cs-e9302-and-arm-jtag-tiny/10353/1 "2009-03-07T17:41:17Z")

</div>

hi,

i have been struggling with Olimex board cs-e9302 and its JTAG device arm-jtag-tiny (using openocd). i can’t get it to work.i have used this same JTAG before with Olimex board SAM7-p256 so i think the JTAG itself is ok. howeve when i try it with the cs-e9302 i can’t get it to work, i can’t halt the processor, i can’t reset. every thing returns and error. here is the outputs:

@startup:

Open On-Chip Debugger 1.0 (2008-06-19-10:57) svn:721

$URL: [http://svn.berlios.de/svnroot/repos/ope … /openocd.c](http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c) $

Info: options.c:50 configuration\_output\_handler(): jtag\_speed: 2, 2

Info: options.c:50 configuration\_output\_handler(): Open On-Chip Debugger 1.0 (2008-06-

19-10:57) svn:721

Info: jtag.c:1389 jtag\_examine\_chain(): JTAG device found: 0x10920f0f (Manufacturer: 0 x787, Part: 0x0920, Version: 0x1)

Error: embeddedice.c:191 embeddedice\_build\_reg\_cache(): unknown EmbeddedICE version (co mms ctrl: 0xe1ca2760)

Info: jtag.c:1389 jtag\_examine\_chain(): JTAG device found: 0x10920f0f (Manufacturer: 0 x787, Part: 0x0920, Version: 0x1)

Error: armv4\_5.h:114 armv4\_5\_mode\_to\_number(): invalid mode value encountered

Error: arm7\_9\_common.c:1102 arm7\_9\_debug\_entry(): cpsr contains invalid mode value - co mmunication failure

Warning: arm7\_9\_common.c:700 arm7\_9\_poll(): DBGACK set while target was in unknown state. Reset or initialize target.

@reset:

User: target.c:436 target\_process\_reset(): Timed out waiting for halt after reset

Info: server.c:78 add\_connection(): accepting ‘telnet’ connection from 0

Info: jtag.c:1389 jtag\_examine\_chain(): JTAG device found: 0x10920f0f (Manufacturer: 0x787, Part: 0x0920, Version: 0x1)

Warning: jtag.c:1211 jtag\_check\_value(): value captured during scan didn’t pass the requested check: captured: 0x00 check\_value: 0x01 check\_mask: 0x0f

Warning: jtag.c:1171 jtag\_read\_buffer(): in\_handler reported a failed check

Warning: jtag.c:1211 jtag\_check\_value(): value captured during scan didn’t pass the requested check: captured: 0x00 check\_value: 0x01 check\_mask: 0x0f

Warning: jtag.c:1171 jtag\_read\_buffer(): in\_handler reported a failed check

Error: armv4\_5.h:114 armv4\_5\_mode\_to\_number(): invalid mode value encountered

and @halt:

jtag.c:1171 jtag\_read\_buffer(): in\_handler reported a failed check

Error: armv4\_5.h:114 armv4\_5\_mode\_to\_number(): invalid mode value encountered

Error: arm7\_9\_common.c:1102 arm7\_9\_debug\_entry(): cpsr contains invalid mode value - communication failure

Warning: arm7\_9\_common.c:700 arm7\_9\_poll(): DBGACK set while target was in unknown state. Reset or initialize target.

Error: armv4\_5.h:114 armv4\_5\_mode\_to\_number(): invalid mode value encountered

Error: arm7\_9\_common.c:1102 arm7\_9\_debug\_entry(): cpsr contains invalid mode value - communication failure

Warning: arm7\_9\_common.c:700 arm7\_9\_poll(): DBGACK set while target was in unknown state. Reset or initialize target.

Error: armv4\_5.h:114 armv4\_5\_mode\_to\_number(): invalid mode value encountered

Error: arm7\_9\_common.c:1102 arm7\_9\_debug\_entry(): cpsr contains invalid mode value - communication failure

Error: target.c:1810 wait\_state(): timed out while waiting for target halted

here is my configuration file:

#ep9302 OpenOCD config file-----------------------------

#daemon configuration

telnet\_port 4444

gdb\_port 3333

#interface

interface ft2232

#Olimex ARM-USB-OCD

ft2232\_device\_desc “Olimex OpenOCD JTAG TINY”

ft2232\_layout olimex-jtag

ft2232\_vid\_pid 0x15ba 0x0004

jtag\_speed 2

#reset\_config trst\_and\_srst trst\_pulls\_srst

reset\_config trst\_and\_srst

#jtag scan chain

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

jtag\_device 4 0x1 0xf 0xe

jtag\_nsrst\_delay 100

jtag\_ntrst\_delay 500

#target configuration

daemon\_startup reset

#target

target arm920t little reset\_halt 0

#target\_script specifies the flash programming script file

run\_and\_halt\_time 0 30

target\_script 0 reset cs\_ep9301\_init.script

working\_area 0 0x80014000 0x1000 backup

#flash configuration

#flash bank \<chip\_width\> \<bus\_width\> [driver\_options …]

flash bank cfi 0x60000000 0x1000000 2 2 0

i have tried all jtag\_speed starting from 0 to 20

all reset\_config trst\_and\_srst , reset\_config trst\_alone

any body have any ideas. i’m desperate here.

Thanks for help
