]> git.sur5r.net Git - openocd/commitdiff
Valentin Longchamp target script for mx31.cfg
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 4 Jul 2008 07:09:02 +0000 (07:09 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 4 Jul 2008 07:09:02 +0000 (07:09 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@740 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/Makefile.am
src/target/target/mx31.cfg [new file with mode: 0644]

index 9a8de56cdcc5c42e35b29cf05c1dc3c2e4e79da7..959b34d3632a32138fecd16e3abe4c17ce51e082 100644 (file)
@@ -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 (file)
index 0000000..ced217c
--- /dev/null
@@ -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
+