]> git.sur5r.net Git - openocd/commitdiff
cfg: Added cfg script for at91sam4sd32x targets
authorPeter Dietzsch <peter.dietzsch@ib-dt.de>
Mon, 15 Apr 2013 15:17:08 +0000 (17:17 +0200)
committerPeter Stuge <peter@stuge.se>
Mon, 15 Apr 2013 16:56:49 +0000 (16:56 +0000)
Change-Id: I3b8a54d89a180bfded3dae3f1fe3d940540e6e7d
Signed-off-by: Peter Dietzsch <peter.dietzsch@ib-dt.de>
Reviewed-on: http://openocd.zylin.com/1333
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
tcl/target/at91sam4sd32x.cfg [new file with mode: 0644]

diff --git a/tcl/target/at91sam4sd32x.cfg b/tcl/target/at91sam4sd32x.cfg
new file mode 100644 (file)
index 0000000..4bc93cb
--- /dev/null
@@ -0,0 +1,10 @@
+# script for ATMEL sam4sd32, a CORTEX-M4 chip
+#
+
+
+source [find target/at91sam4XXX.cfg]
+
+set _FLASHNAME $_CHIPNAME.flash0
+flash bank $_FLASHNAME at91sam4 0x00400000 0 1 1 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash1
+flash bank $_FLASHNAME at91sam4 0x00500000 0 1 1 $_TARGETNAME