OpenOCD with TMS470

Hi all. I’m rather new at this, and am trying to get an Olimex ARM-USB-TINY JTAG to work with a Texas Instruments TI470R1B1M board.

I seem to be connecting okay, but whenever I try to halt the board get continual output of this error:

cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure
invalid mode value encountered 0
cpsr contains invalid mode value - communication failure

Here is my configuration file thus far.

# TI TMS470R1B1M Configuration

if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
} else {
   set  _CHIPNAME tms470r1b1m
}

if { [info exists ENDIAN] } {   
   set  _ENDIAN $ENDIAN    
} else {         
   set  _ENDIAN big
}

if { [info exists CPUTAPID ] } {
   set _CPUTAPID $CPUTAPID
} else {
   set _CPUTAPID 0x3100e02f
}


#TMS470 Reset config
reset_config trst_and_srst

#jtag scan chain
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

# jtag speed
jtag_khz 1000

#jtag_nsrst_delay 200
#jtag_ntrst_delay 200

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_CHIPNAME.cpu -variant arm7tdmi

#flash configuration
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME tms470 0 0 0 0 $_TARGETNAME

arm7_9 fast_memory_access enable
arm7_9 dcc_downloads enable

$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0

If someone could help me baby-step through this one, I would appreciate it.

–Ian