I try to connect to the RDK-BLDC Board (LM3S8971)
I am running under Ubuntu 11.04. I use LIBFTDI-0.19 with openocd 0.5.0.
OpenOCD cannot identify the processors (reads only zeroes) I use the Olimex ARM-USB-OCD.
Does anybody had more luck than me ?
I get the following output
Warn : use 'lm3s5956.cpu' as target identifier, not '0'
Info : clock speed 5 kHz
Info : inter: 0.000944, inter2: 0.000945 end: 0.130956
Info : TAP lm3s5956.cpu does not have IDCODE
Warn : JTAG tap: lm3s5956.cpu UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: JTAG tap: lm3s5956.cpu expected 1 of 1: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Warn : Unexpected idcode after end of chain: 1 0xfffffffe
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Info : inter: 0.000844, inter2: 0.000845 end: 0.003836
Error: lm3s5956.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : inter: 0.027826, inter2: 0.027826 end: 0.067858
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Here is my openocd config file
# target: lm3s8971
interface_list
source tcl/interface/olimex-arm-usb-ocd.cfg
#if { [info exists CHIPNAME] } {
# set _CHIPNAME $CHIPNAME
#} else {
set _CHIPNAME lm3s5956
#}
#if { [info exists CPUTAPID ] } {
# set _CPUTAPID $CPUTAPID
#} else {
set _CPUTAPID 0x3ba00477
#}
adapter_khz 5
#jtag_nsrst_delay 100
#reset_config srst_only
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID -ignore-version
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x4000
set _FLASHNAME $_CHIPNAME.flash
foreach t [jtag names] {
puts [format "TAP: %s\n" $t]
}
flash bank $_FLASHNAME stellaris 0 0 0 0 0 $_TARGETNAME