aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2015-01-16 12:17:40 +0300
committerPaul Fertser <fercerpav@gmail.com>2015-02-22 19:00:34 +0000
commit40d6e8826872906651fabffc9a6463e7e074fc8c (patch)
tree4b4539fbddb73173ecd5a5b4650405462369e71d /tcl
parentbe97da76abdba80a8e67d9c2e893bdbd32565887 (diff)
downloadriscv-openocd-40d6e8826872906651fabffc9a6463e7e074fc8c.zip
riscv-openocd-40d6e8826872906651fabffc9a6463e7e074fc8c.tar.gz
riscv-openocd-40d6e8826872906651fabffc9a6463e7e074fc8c.tar.bz2
cfg: add board and target configs for TI SimpleLink Wi-Fi CC3200 LaunchPad
Change-Id: I4396ee737c1dad380aa23894bbd1faf75f26d072 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2465 Tested-by: jenkins
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/ti-cc3200-launchxl.cfg18
-rw-r--r--tcl/interface/ftdi/ti-icdi.cfg15
-rwxr-xr-xtcl/target/cc32xx.cfg53
3 files changed, 86 insertions, 0 deletions
diff --git a/tcl/board/ti-cc3200-launchxl.cfg b/tcl/board/ti-cc3200-launchxl.cfg
new file mode 100644
index 0000000..fd80c53
--- /dev/null
+++ b/tcl/board/ti-cc3200-launchxl.cfg
@@ -0,0 +1,18 @@
+#
+# TI SimpleLink Wi-Fi CC3200 LaunchPad
+#
+# http://www.ti.com/tool/cc3200-launchxl
+#
+
+source [find interface/ftdi/ti-icdi.cfg]
+
+if { [info exists TRANSPORT] } {
+ transport select $TRANSPORT
+} else {
+ transport select jtag
+}
+
+set WORKAREASIZE 0x40000
+source [find target/cc32xx.cfg]
+
+reset_config srst_only
diff --git a/tcl/interface/ftdi/ti-icdi.cfg b/tcl/interface/ftdi/ti-icdi.cfg
new file mode 100644
index 0000000..6af809c
--- /dev/null
+++ b/tcl/interface/ftdi/ti-icdi.cfg
@@ -0,0 +1,15 @@
+#
+# This is an FTDI-based debugging solution as found on some TI boards,
+# e.g. CC3200 LaunchPad.
+#
+# The schematics are identical to luminary-icdi (including SWD
+# support) but the USB IDs are different.
+#
+
+interface ftdi
+ftdi_vid_pid 0x0451 0xc32a
+
+ftdi_layout_init 0x00a8 0x00eb
+ftdi_layout_signal nSRST -noe 0x0020
+ftdi_layout_signal SWD_EN -ndata 0x0080
+ftdi_layout_signal SWDIO_OE -data 0x0008
diff --git a/tcl/target/cc32xx.cfg b/tcl/target/cc32xx.cfg
new file mode 100755
index 0000000..ff65450
--- /dev/null
+++ b/tcl/target/cc32xx.cfg
@@ -0,0 +1,53 @@
+# Config for Texas Instruments SoC CC32xx family
+
+source [find target/swj-dp.tcl]
+
+adapter_khz 100
+
+source [find target/icepick.cfg]
+
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $CHIPNAME
+} else {
+ set _CHIPNAME cc32xx
+}
+
+#
+# Main DAP
+#
+if { [info exists DAP_TAPID] } {
+ set _DAP_TAPID $DAP_TAPID
+} else {
+ if {[using_jtag]} {
+ set _DAP_TAPID 0x4BA00477
+ } else {
+ set _DAP_TAPID 0x2BA01477
+ }
+}
+
+if {[using_jtag]} {
+ jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -disable
+ jtag configure $_CHIPNAME.dap -event tap-enable "icepick_c_tapenable $_CHIPNAME.jrc 0"
+} else {
+ swj_newdap $_CHIPNAME dap -expected-id $_DAP_TAPID
+}
+
+#
+# ICEpick-C (JTAG route controller)
+#
+if { [info exists JRC_TAPID] } {
+ set _JRC_TAPID $JRC_TAPID
+} else {
+ set _JRC_TAPID 0x0B97C02F
+}
+
+if {[using_jtag]} {
+ jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f -expected-id $_JRC_TAPID -ignore-version
+ jtag configure $_CHIPNAME.jrc -event setup "jtag tapenable $_CHIPNAME.dap"
+}
+
+#
+# Cortex M3 target
+#
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.dap