mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 13:14:51 +00:00
Add openocd config files
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=none Change-Id: I211d23d61db37d7ed40621276f456e6935462c3d
This commit is contained in:
31
chip/lm4/openocd/lm4x.cfg
Normal file
31
chip/lm4/openocd/lm4x.cfg
Normal 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
|
||||
7
chip/lm4/openocd/openocd.cfg
Normal file
7
chip/lm4/openocd/openocd.cfg
Normal 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]
|
||||
Reference in New Issue
Block a user