Problem with SVN121

I’ve recently compiled OpenOCD SVN121 (been using SVN62 for a long while now!). My target is a LPC2214 & JTAG interface is FT2232. I’m having problems when I run the reset command via telnet. The OpenOCD output after issung the reset is:

Info: openocd.c:89 main(): Open On-Chip Debugger (2006-11-22 14:00 CEST)

Warning: ft2232.c:1224 ft2232_init(): No ft2232 layout specified, using default

‘usbjtag’

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Warning: arm7_9_common.c:683 arm7_9_assert_reset(): srst resets test logic, too

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: server.c:67 add_connection(): accepted ‘telnet’ connection from 0

Warning: arm7_9_common.c:683 arm7_9_assert_reset(): srst resets test logic, too

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Warning: jtag.c:1045 jtag_read_buffer(): value captured during scan didn’t pass

the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x0f

Warning: jtag.c:1045 jtag_read_buffer(): value captured during scan didn’t pass

the requested check: captured: 0x00 check_value: 0x01 check_mask: 0x0f

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Info: ft2232.c:376 ft2232_send_and_recv(): inter: 0.0, inter2: 0.0 end: 0.0

Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode va

lue - communication failure

Error: target.c:1054 handle_target(): couldn’t poll target, exiting

My config file is:

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface ft2232

ft2232_device_desc “JTAG Adapter A”

jtag_speed 4

#reset_config trst_and_srst srst_pulls_trst

reset_config srst_only 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 little run_and_halt 0 arm7tdmi-s_r4

run_and_halt_time 0 100

working_area 0 0x40000000 0x3000 nobackup

#FLASH

#LPC & external

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

flash bank cfi 0x80000000 0x400000 2 2 0

When I revert back to SVN62 with exactly the same hardware setup everything is fine. Has anything changed with the config which might explain the difference ?

Thanks

Dave

Hello Dave,

take a look here:

http://openfacts.berlios.de/index-en.ph … CD_scripts

It looks that you do not use:

ft2232_layout jtagkey

ft2232_vid_pid 0x0403 0xcff8

That was change a while ago.

Regards,

Michael

Michael,

Thanks for the suggestion. It turns out the problem was due to no delay after negating SRST. I had to mod the SVN62 code to do this but Dominic has since modifed the code to use the ‘jtag_nsrst_delay’ config variable. Setting this to 200 sorted my problem.

Thanks

Dave