summaryrefslogtreecommitdiff
path: root/testing/examples/ledtest-imx27ads/gdbinit-imx27ads
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-15 13:22:04 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-15 13:22:04 +0000
commit2e0f28149d46f128cf6851e76bf541f66b484fd5 (patch)
tree54676a40bbc48551b7b04f530d0818268b296a27 /testing/examples/ledtest-imx27ads/gdbinit-imx27ads
parent8fc9bcb7f57306e822deaf2e0facd51b96dc4fb2 (diff)
downloadopenocd_libswd-2e0f28149d46f128cf6851e76bf541f66b484fd5.tar.gz
openocd_libswd-2e0f28149d46f128cf6851e76bf541f66b484fd5.tar.bz2
openocd_libswd-2e0f28149d46f128cf6851e76bf541f66b484fd5.tar.xz
openocd_libswd-2e0f28149d46f128cf6851e76bf541f66b484fd5.zip
Alan Carvalho de Assis <acassis@gmail.com> test app for imx27
git-svn-id: svn://svn.berlios.de/openocd/trunk@1323 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'testing/examples/ledtest-imx27ads/gdbinit-imx27ads')
-rw-r--r--testing/examples/ledtest-imx27ads/gdbinit-imx27ads36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/examples/ledtest-imx27ads/gdbinit-imx27ads b/testing/examples/ledtest-imx27ads/gdbinit-imx27ads
new file mode 100644
index 00000000..44758cf1
--- /dev/null
+++ b/testing/examples/ledtest-imx27ads/gdbinit-imx27ads
@@ -0,0 +1,36 @@
+echo Script to load ledtest on iMX27ADS.\n
+
+# Note: you need to startup openocd with "-f board/imx27ads.cfg"
+# in order to it initialize RAM memory.
+
+# SETUP GDB :
+#
+# Common gdb setup for ARM CPUs
+set complaints 1
+set output-radix 10
+set input-radix 10
+set prompt (arm-gdb)
+set endian little
+dir .
+
+# CONNECT TO TARGET :
+target remote 127.0.0.1:3333
+
+# LOAD IMAGE :
+#
+
+# Load the program executable called "u-boot"
+load test.elf
+
+# Load the symbols for the program.
+symbol-file test.elf
+
+# RUN TO MAIN :
+#
+# Set a breakpoint at main().
+#b reset
+b main
+
+# Run to the breakpoint.
+c
+