Add Openocd debug configuration and gdb init script.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 27 Aug 2009 14:52:38 +0000 (14:52 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 27 Aug 2009 14:52:38 +0000 (14:52 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2801 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/scripts/openocd/debug.cfg [new file with mode: 0644]
bertos/cpu/arm/scripts/openocd/gdbinit-sam7 [new file with mode: 0644]

diff --git a/bertos/cpu/arm/scripts/openocd/debug.cfg b/bertos/cpu/arm/scripts/openocd/debug.cfg
new file mode 100644 (file)
index 0000000..70e33c0
--- /dev/null
@@ -0,0 +1,23 @@
+# Change the default telnet port...
+telnet_port 4444
+
+# Port for TCL connection.
+tcl_port 6666
+
+# GDB connects here
+gdb_port 3333
+
+source [find PROGRAMMER_TYPE]
+
+source [find PROGRAMMER_CPU]
+
+$_TARGETNAME configure -event reset-start {
+       cpu_setup
+}
+
+$_TARGETNAME configure -event gdb-detach {
+       shutdown
+}
+
+init
+reset run
diff --git a/bertos/cpu/arm/scripts/openocd/gdbinit-sam7 b/bertos/cpu/arm/scripts/openocd/gdbinit-sam7
new file mode 100644 (file)
index 0000000..3f8067d
--- /dev/null
@@ -0,0 +1,2 @@
+monitor soft_reset_halt
+thbreak main