openocd .cfg file for ek-lm3s8962

Hello All,

I am working with an old Stellaris LM3S8962 eval kit and I’m having some trouble getting openocd to work with it. I have the latest version of opeocd built and everything but the problem seems to be with the .cfg file I’m using. I’ve spent the last three days scouring forums for the answer to the problems I’ve been having and while I’ve worked through most I have finally gotten stuck.

The config file I am using is as follows:

# script for lm3s8962

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

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

# Work-area is a space in RAM used for flash programming
# By default use 64kB
if { [info exists WORKAREASIZE] } {
   set  _WORKAREASIZE $WORKAREASIZE
} else {
   set  _WORKAREASIZE 0x10000
}

jtag_khz 1000

#jtag_rclk 500

jtag_nsrst_delay 100
jtag_ntrst_delay 100

#jtag scan chain
if { [info exists CPUTAPID ] } {
   set _CPUTAPID $CPUTAPID
} else {
  # See LM3S8962 Document
  # Section xxx
   set _CPUTAPID 0x3ba00477
}
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

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

$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stellaris 0 0 0 0 $_TARGETNAME

# For more information about the configuration files, take a look at:
# openocd.texi

The issue is I’m getting these errors:

@spiritus Documents]$ openocd -f lm3s8962.cfg 
Open On-Chip Debugger 0.7.0-dev-00208-g900f299 (2013-03-31-21:51)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.sourceforge.net/doc/doxygen/bugs.html
DEPRECATED! use 'adapter_khz' not 'jtag_khz'
adapter speed: 1000 kHz
DEPRECATED! use 'adapter_nsrst_delay' not 'jtag_nsrst_delay'
adapter_nsrst_delay: 100
Runtime Error: lm3s8962.cfg:28: invalid command name "jtag_ntrst_delay"
in procedure 'script' 
at file "embedded:startup.tcl", line 58
at file "lm3s8962.cfg", line 28

And I have no idea how to remedy this. I’ve tried reading through the openocd documentation but the config file information is way over my head especially given that I am so unfamiliar with this chip.

If anyone could help me get past this it’d be greatly appreciated. I know that part of the problem is outdated commands but I think there is something more that’s wrong with the config file.

NOTE: I have tried using the default .cfg files for my board (and some others plus the individual interface and target .cfg files) but they do not work. The .cfg file I posted above is the closest thing I’ve gotten to work.

Just use the built in configs, if as you say you get errors then we can go from there.

openocd -f board/ek-lm3s8962.cfg

Spen