problem with cs-e9302 and arm-jtag-tiny

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 $

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