aboutsummaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorArne Wichmann <arnew@rasentrimmer.org>2014-09-25 07:21:24 +0200
committerPaul Fertser <fercerpav@gmail.com>2015-03-09 06:25:03 +0000
commite3b43b77e9fa5db22c196f82044725783e6fd200 (patch)
tree7c850d62a1fd6f29026f6fae68ff39f40fc83ffc /tcl/target
parent90ae846fc4009f8e466566ee0371398e52beecca (diff)
target & board: AT91SAM7A2 and Olimex SAM7-LA2
Initial Support for AT91SAM7A2 on Olimex SAM7-LA2 board. The board seems not to be able to reset into halted mode, as srst is connected to NRESET of the cpu (configured srst_pulls_trst). JTAG RCLK is connected to CLK. Tested with interface/ftdi/olimex-arm-usb-ocd-h.cfg. Change-Id: I2bdd67e3683e45f1119c5850bad294aa107891d8 Signed-off-by: Arne Wichmann <arne.wichmann@gmail.com> Reviewed-on: http://openocd.zylin.com/2318 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/at91sam7a2.cfg23
1 files changed, 23 insertions, 0 deletions
diff --git a/tcl/target/at91sam7a2.cfg b/tcl/target/at91sam7a2.cfg
new file mode 100644
index 00000000..f7a0de2d
--- /dev/null
+++ b/tcl/target/at91sam7a2.cfg
@@ -0,0 +1,23 @@
+
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $CHIPNAME
+} else {
+ set _CHIPNAME at91sam7a2
+}
+
+if { [info exists ENDIAN] } {
+ set _ENDIAN $ENDIAN
+} else {
+ set _ENDIAN little
+}
+
+if { [info exists CPUTAPID] } {
+ set _CPUTAPID $CPUTAPID
+} else {
+ set _CPUTAPID 0x1f0f0f0f
+}
+
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+set _TARGETNAME $_CHIPNAME.cpu
+
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME