]> git.gag.com Git - fw/openocd/blobdiff - tcl/target/at91sam4c32x.cfg
at91sam4: Add flash description and chipid for SAM4Cxx variants.
[fw/openocd] / tcl / target / at91sam4c32x.cfg
diff --git a/tcl/target/at91sam4c32x.cfg b/tcl/target/at91sam4c32x.cfg
new file mode 100644 (file)
index 0000000..5344e0c
--- /dev/null
@@ -0,0 +1,9 @@
+# script for ATMEL sam4c32, a Cortex-M4 chip
+#
+
+source [find target/at91sam4XXX.cfg]
+
+set _FLASHNAME $_CHIPNAME.flash0
+flash bank $_FLASHNAME at91sam4 0x01000000 0 1 1 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash1
+flash bank $_FLASHNAME at91sam4 0x01100000 0 1 1 $_TARGETNAME