aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorNeil Jensen <neil30al@gmail.com>2012-02-24 16:31:44 -0600
committerSpencer Oliver <spen@spen-soft.co.uk>2012-02-27 10:01:01 +0000
commit3a7ca6a6212304dbc794e1f6935e72571d198595 (patch)
tree07449968a359beb541499d4802736a3483bc2d51 /tcl
parent5793056d96fd88845cde0d107c002a5fce413909 (diff)
downloadriscv-openocd-3a7ca6a6212304dbc794e1f6935e72571d198595.zip
riscv-openocd-3a7ca6a6212304dbc794e1f6935e72571d198595.tar.gz
riscv-openocd-3a7ca6a6212304dbc794e1f6935e72571d198595.tar.bz2
cfg: beaglebone cleanup
Simplified the configuration and removed things that were not necessary for debugging. Also added reset configuration. Signed-off-by: Neil Jensen <neil30al@gmail.com> Change-Id: I96f991c3051aa68278212cd6509484cbce40ccb7 Reviewed-on: http://openocd.zylin.com/488 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/ti_beaglebone.cfg22
1 files changed, 7 insertions, 15 deletions
diff --git a/tcl/board/ti_beaglebone.cfg b/tcl/board/ti_beaglebone.cfg
index c9a54b0..dffb07f 100644
--- a/tcl/board/ti_beaglebone.cfg
+++ b/tcl/board/ti_beaglebone.cfg
@@ -3,8 +3,12 @@ interface ft2232
ft2232_layout xds100v2
ft2232_vid_pid 0x0403 0xa6d0
-#jtag_rclk 10
-adapter_khz 1000
+adapter_khz 16000
+
+reset_config trst_and_srst
+
+
+
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
@@ -73,20 +77,8 @@ target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap -dbgbase 0x8
# SRAM: 64K at 0x4030.0000; use the first 16K
$_TARGETNAME configure -work-area-phys 0x40300000 -work-area-size 0x4000
-$_TARGETNAME configure -event reset-assert "am335x_dbginit $_TARGETNAME"
-$_TARGETNAME configure -event reset-assert-post "am335x_dbginit $_TARGETNAME"
-
$_TARGETNAME configure -event gdb-attach {
- global _TARGETNAME
- am335x_dbginit $_TARGETNAME
- echo "Halting target"
- halt
-}
-
-# Run this to enable invasive debugging. This is run automatically in the
-# reset sequence.
-proc am335x_dbginit {target} {
- # General Cortex A8 debug initialisation
cortex_a8 dbginit
+ halt
}