openocd on lm3s1138

I am trying to use openocd on my lm3s1138,but failed.

the openocd version is 0.1 on windows

the erro code

C:\Program Files\OpenOCD\0.1.0\bin>openocd -f interface/lm3s.cfg -f target/lm3s1

138.cfg -c init -c reset

Open On-Chip Debugger 0.1.0 (2009-01-21-21:15) Release

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: https://kc8apf@svn.berlios.de/svnroot/r … -0.1.0/src

/openocd.c $

500 kHz

Info : JTAG tap: lm3s1138.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b,

Part: 0xba00, Version: 0x3)

Info : JTAG Tap/device matched

Warn : no telnet port specified, using default port 4444

Warn : no gdb port specified, using default port 3333

Warn : no tcl port specified, using default port 6666

Info : JTAG tap: lm3s1138.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b,

Part: 0xba00, Version: 0x3)

Info : JTAG Tap/device matched

target state: halted

target halted due to undefined, current mode: Handler HardFault

xPSR: 0x01000003 pc: 0xfffffffe

my lm3s1138.cfg

Script for luminary lm3s811

if { [info exists CHIPNAME] } {

set _CHIPNAME $CHIPNAME

} else {

set _CHIPNAME lm3s1138

}

if { [info exists ENDIAN] } {

set _ENDIAN $ENDIAN

} else {

this defaults to a little endian

set _ENDIAN little

}

if { [info exists CPUTAPID ] } {

set _CPUTAPID $CPUTAPID

} else {

force an error till we get a good number

set _CPUTAPID 0x3ba00477

}

jtag speed

jtag_khz 500

jtag_nsrst_delay 100

jtag_ntrst_delay 100

#LM3S811 Evaluation Board has only srst

reset_config srst_only

#jtag scan chain

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID

the luminary variant causes a software reset rather than asserting SRST

this stops the debug registers from being cleared

this will be fixed in later revisions of silicon

set _TARGETNAME [format “%s.cpu” $_CHIPNAME]

target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s

8k working area at base of ram

$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0

#flash configuration

flash bank stellaris 0 0 0 0 0

just modify from lm3s811,change chipname

can anyone help me ?

i can’t see any error here…

4/3!!

Freddie Chopin:
i can’t see any error here…

4/3!!

It ran to here then stoped.

target halted due to undefined, current mode: Handler HardFault

xPSR: 0x01000003 pc: 0xfffffffe

try doing “reset halt”

4/3!!

Freddie Chopin:
try doing “reset halt”

4/3!!

how to? i am a newer to openocd,and now my ubuntu has no respones to my command : sudo gedit.

damage!