summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 07:09:02 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 07:09:02 +0000
commit586f8db90f3d21258f9b5c69a94630a1b9a6fe97 (patch)
treea109a3ec44548841a8653cb2fd4f3a1f2e7735dc
parenta521e674cfc1c74be9a8a7036048d5e4894b1b70 (diff)
downloadopenocd_libswd-586f8db90f3d21258f9b5c69a94630a1b9a6fe97.tar.gz
openocd_libswd-586f8db90f3d21258f9b5c69a94630a1b9a6fe97.tar.bz2
openocd_libswd-586f8db90f3d21258f9b5c69a94630a1b9a6fe97.tar.xz
openocd_libswd-586f8db90f3d21258f9b5c69a94630a1b9a6fe97.zip
Valentin Longchamp target script for mx31.cfg
git-svn-id: svn://svn.berlios.de/openocd/trunk@740 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/Makefile.am2
-rw-r--r--src/target/target/mx31.cfg16
2 files changed, 17 insertions, 1 deletions
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 9a8de56c..959b34d3 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -34,5 +34,5 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script
interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script \
interface/chameleon.cfg interface/at91rm9200.cfg interface/jlink.cfg interface/arm-usb-ocd.cfg \
interface/signalyzer.cfg event/eir-sam7se512_reset.script target/eir-sam7se512.cfg \
- event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg
+ event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg target/mx31.cfg
diff --git a/src/target/target/mx31.cfg b/src/target/target/mx31.cfg
new file mode 100644
index 00000000..ced217c4
--- /dev/null
+++ b/src/target/target/mx31.cfg
@@ -0,0 +1,16 @@
+#use combined on interfaces or targets that can't set TRST/SRST separately
+reset_config trst_and_srst
+jtag_speed 10
+
+#jtag scan chain
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+# 4 devices otherwise openocd complains, the last one returns 0x0 for all bytes
+jtag_device 4 0x1 0x0 0xe
+jtag_device 5 0x1 0x1f 0x1e
+jtag_device 4 0x0 0x0 0xe
+jtag_device 5 0x1 0x0 0x1e
+
+#target <type> <endianess> <reset mode>
+target arm11 little reset_halt 1
+run_and_halt_time 0 0
+