aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/at91sam3ax_8x.cfg
diff options
context:
space:
mode:
authorOlivier Schonken <olivier.schonken@gmail.com>2012-03-06 22:43:25 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2012-03-30 15:56:19 +0000
commit90d33c5c87a162d5208cb9bbf8ccd7982a672a8c (patch)
tree4545904d459100b828d18d9bf5817640c88aa89f /tcl/target/at91sam3ax_8x.cfg
parentd26098b664d5209256dde1816f48c62fe5bc897d (diff)
Added tcl config scripts for SAM3A/X targets and devboard
The SAM3A/X processors that were released thus far is either a SAM3A/X(4) - 256K, or a SAM3A/X(8) - 512K device. Thus the config files are per variant, and not per device. Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Change-Id: I84d26d044e810eb428b1d6287907ea3bf8364c73 Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Reviewed-on: http://openocd.zylin.com/522 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl/target/at91sam3ax_8x.cfg')
-rw-r--r--tcl/target/at91sam3ax_8x.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/tcl/target/at91sam3ax_8x.cfg b/tcl/target/at91sam3ax_8x.cfg
new file mode 100644
index 00000000..e2493837
--- /dev/null
+++ b/tcl/target/at91sam3ax_8x.cfg
@@ -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
+
+