Add openocd config files

Signed-off-by: Randall Spangler <rspangler@chromium.org>

BUG=none
TEST=none

Change-Id: I211d23d61db37d7ed40621276f456e6935462c3d
This commit is contained in:
Randall Spangler
2012-01-05 14:18:11 -08:00
parent e80eb4d558
commit edc50a4295
2 changed files with 38 additions and 0 deletions

31
chip/lm4/openocd/lm4x.cfg Normal file
View File

@@ -0,0 +1,31 @@
# Script for TI/Luminary Stellaris LM4F232H (LM4F232H5BB)
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME lm4f232h
}
if { [info exists CPUTAPID ] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x4ba00477
}
#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 $_CHIPNAME.cpu
# TODO(rspangler): variant lm4x?
target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
# 8k working area at base of ram, not backed up
#$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
# 12k working area at base of ram, not backed up
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x3000
#flash configuration
flash bank stellaris 0 0 0 0 $_TARGETNAME

View File

@@ -0,0 +1,7 @@
telnet_port 4444
gdb_port 3333
gdb_memory_map enable
gdb_flash_program enable
source [find interface/luminary-icdi.cfg]
source [find lm4x.cfg]