Problem connecting to STR9

I have OpenOCD Rev115, Olimex Wiggler cable and I am using a STR912.

When I try to connect to the STR912 I get the following error:

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

Debug: arm966e.c:252 arm966e_target_command(): chain_pos: 1, variant: arm966e

Info: configuration.c:50 configuration_output_handler(): Command sw_bkpts not

found

Debug: jtag.c:1210 jtag_init():

Debug: parport.c:373 parport_init(): requesting privileges for parallel port 0

x378…

Debug: parport.c:383 parport_init(): …privileges granted

Debug: parport.c:210 parport_reset(): trst: 0, srst: 0

Debug: jtag.c:247 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:247 jtag_call_event_callbacks(): jtag event: 1

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:1096 jtag_reset_callback():

Debug: jtag.c:1096 jtag_reset_callback():

Error: jtag.c:1149 jtag_validate_chain(): Error validating JTAG scan chain, IR

mismatch, scan returned 0x07ffff

I am using the following cfg file

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface parport

parport_port 0x378

parport_cable wiggler

jtag_speed 1

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

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 8 0x1 0x1 0xfe

jtag_device 4 0x1 0xf 0xe

jtag_device 5 0x1 0x1 0x1e

#target configuration

daemon_startup reset

#target

#target arm7tdmi

target arm966e little run_and_halt 1 arm966e

run_and_halt_time 0 30

working_area 0 0x50000000 16384 nobackup

#flash configuration

flash bank str9x 0x0 0x88000 0 0 0

arm7_9 sw_bkpts enable

Thank you very much.

Just some quick things to check:

  • I see a similar error if no pod is connected to the port; check that it is powered up

  • the multiple times you have configured the jtag chain may be unecessary (although I wouldn’t think it would affect connecting to your wiggler), can you use it as a single device? ie: just "jtag_device 4 0x1 0xf 0xe’ ( see aslo: http://www.noicedebugger.com/tour_arm/firstoocd.html )

try changing the reset_config to something like srst_only or trst_and_srst - depending on your wiggler setup.

Your current config is really only suitable for devices that have the srst and trst intenally connected (LPC and str7).

Just a note to exelty - this config is ok for th str9 - it contains 3 tap controllers (boundary scan, arm966 and flash controller).

reset_halt can be used on the str9 - if you wiggler supports it.

Regards

Spen

Thank you to exelty and ntfreak for your replies. I will try changing the reset_config.

Hey,

there seems to be a problem accessing your PC’s parallel port. Could you please try http://mmd.ath.cx/openocd/openocd_r121_ … _fixes.exe

I’ve added an initialization command that clears the tristate and interrupt enable bits - I’ve found this caused problems in my windows virtual machine, while on the linux host, these bits were never set.

Regards,

Dominic