]> git.gag.com Git - fw/openocd/blobdiff - tcl/target/at91sam3ax_8x.cfg
Added tcl config scripts for SAM3A/X targets and devboard
[fw/openocd] / tcl / target / at91sam3ax_8x.cfg
diff --git a/tcl/target/at91sam3ax_8x.cfg b/tcl/target/at91sam3ax_8x.cfg
new file mode 100644 (file)
index 0000000..e249383
--- /dev/null
@@ -0,0 +1,11 @@
+# common stuff
+source [find target/at91sam3ax_xx.cfg]
+
+# size is automatically "calculated" by probing
+set _FLASHNAME $_CHIPNAME.flash0
+flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME
+# This is a 512K chip - it has the 2nd bank
+set _FLASHNAME $_CHIPNAME.flash1
+flash bank $_FLASHNAME at91sam3 0x0000C0000 0 1 1 $_TARGETNAME
+
+