Dirk Behme <dirk.behme@googlemail.com> Minor updates for OMAP3 scripts
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 16:15:41 +0000 (16:15 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 21 May 2009 16:15:41 +0000 (16:15 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1875 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/board/ti_beagleboard.cfg
src/target/target/omap3530.cfg

index 99c639053b6aa89610b6bd77aed8d3f09e579968..170df460e298ce4a6bb6500640d8470c1b2a61cf 100644 (file)
@@ -9,3 +9,6 @@ jtag_reset 0 0
 
 endstate RUN/IDLE
 
+init
+
+omap3_dbginit
index f4e5164cd0831c97d42c167ae28419b4054888d3..ad8f8ea8c53dd8b593fccb135dfd0b0972e5e7c4 100644 (file)
@@ -27,6 +27,8 @@ if { [info exists CPUTAPID ] } {
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0 -expected-id $_CPUTAPID -disable
 jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0xf -expected-id 0x0b7ae02f
 
+target create omap3.cpu cortex_m3 -endian little -chain-position omap3.cpu
+
 jtag configure $_CHIPNAME.cpu -event tap-enable {
        puts "Enabling Cortex-A8 @ OMAP3"
        irscan omap3.jrc 7 -endstate IRPAUSE
@@ -38,3 +40,18 @@ jtag configure $_CHIPNAME.cpu -event tap-enable {
        puts "Cortex-A8 @ OMAP3 enabled"
 }
 
+proc omap3_dbginit { } {
+     version
+     jtag tapenable omap3.cpu
+     targets
+     # sleep 1000
+     # dap apsel 1
+     # sleep 1000
+     # dap apsel 1
+     # dap info 1
+     omap3.cpu mww 0x54011FB0 0xC5ACCE55 4
+     omap3.cpu mdw 0x54011314
+     omap3.cpu mdw 0x54011314
+     # omap3.cpu mdw 0x54011080
+     omap3.cpu mww 0x5401d030 0x00002000 4
+}