summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorMichael Schwingen <michael@schwingen.org>2011-01-02 21:01:22 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-02 21:17:57 +0100
commit1795239cfda77315ea2f4fbc028e7a411d13a7d0 (patch)
tree37ab60686e306dc2d7509701c24bb55386165a41 /tcl
parent09a0a69c09022258a00b3971fe708067d9977402 (diff)
downloadopenocd+libswd-1795239cfda77315ea2f4fbc028e7a411d13a7d0.tar.gz
openocd+libswd-1795239cfda77315ea2f4fbc028e7a411d13a7d0.tar.bz2
openocd+libswd-1795239cfda77315ea2f4fbc028e7a411d13a7d0.tar.xz
openocd+libswd-1795239cfda77315ea2f4fbc028e7a411d13a7d0.zip
actux3.cfg: add function to setup for u-boot debugging
Signed-off-by: Michael Schwingen <michael@schwingen.org>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/actux3.cfg22
1 files changed, 22 insertions, 0 deletions
diff --git a/tcl/board/actux3.cfg b/tcl/board/actux3.cfg
index 922d4fcf..5435ff88 100644
--- a/tcl/board/actux3.cfg
+++ b/tcl/board/actux3.cfg
@@ -45,3 +45,25 @@ flash bank $_FLASHNAME cfi 0x50000000 0x400000 2 2 $_TARGETNAME
init
reset init
+
+# setup to debug u-boot in flash
+proc uboot_debug {} {
+ gdb_breakpoint_override hard
+ xscale vector_catch 0xFF
+
+ xscale vector_table low 1 0xe59ff018
+ xscale vector_table low 2 0xe59ff018
+ xscale vector_table low 3 0xe59ff018
+ xscale vector_table low 4 0xe59ff018
+ xscale vector_table low 5 0xe59ff018
+ xscale vector_table low 6 0xe59ff018
+ xscale vector_table low 7 0xe59ff018
+
+ xscale vector_table high 1 0xe59ff018
+ xscale vector_table high 2 0xe59ff018
+ xscale vector_table high 3 0xe59ff018
+ xscale vector_table high 4 0xe59ff018
+ xscale vector_table high 5 0xe59ff018
+ xscale vector_table high 6 0xe59ff018
+ xscale vector_table high 7 0xe59ff018
+}