]> git.sur5r.net Git - openocd/commitdiff
avr32: basic target script
authorOleksandr Tymoshenko <gonzo@bluezbox.com>
Sun, 15 Aug 2010 19:55:17 +0000 (21:55 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 15 Aug 2010 19:56:41 +0000 (21:56 +0200)
tcl/target/avr32.cfg [new file with mode: 0644]

diff --git a/tcl/target/avr32.cfg b/tcl/target/avr32.cfg
new file mode 100644 (file)
index 0000000..7fe98b2
--- /dev/null
@@ -0,0 +1,18 @@
+set  _CHIPNAME avr32
+set  _ENDIAN big
+
+# force an error till we get a good number
+set _CPUTAPID  0x21e8203f
+
+jtag_nsrst_delay 100
+jtag_ntrst_delay 100
+
+reset_config trst_and_srst separate
+
+# jtag scan chain
+# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
+
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME
+