]> git.sur5r.net Git - openocd/commitdiff
cfg: add board and target configs for TI SimpleLink Wi-Fi CC3200 LaunchPad
authorPaul Fertser <fercerpav@gmail.com>
Fri, 16 Jan 2015 09:17:40 +0000 (12:17 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 22 Feb 2015 19:00:34 +0000 (19:00 +0000)
Change-Id: I4396ee737c1dad380aa23894bbd1faf75f26d072
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2465
Tested-by: jenkins
contrib/99-openocd.rules
tcl/board/ti-cc3200-launchxl.cfg [new file with mode: 0644]
tcl/interface/ftdi/ti-icdi.cfg [new file with mode: 0644]
tcl/target/cc32xx.cfg [new file with mode: 0755]

index acdfade2ff49986213f0ad0c73e656ccfaa49125..d810fcaf2385b2b0a9d7050b0e284fbe88e5a6a1 100644 (file)
@@ -50,6 +50,9 @@ ATTRS{idVendor}=="0403", ATTRS{idProduct}=="c141", MODE="664", GROUP="plugdev"
 # Amontec JTAGkey and JTAGkey-tiny
 ATTRS{idVendor}=="0403", ATTRS{idProduct}=="cff8", MODE="664", GROUP="plugdev"
 
+# TI ICDI
+ATTRS{idVendor}=="0451", ATTRS{idProduct}=="c32a", MODE="664", GROUP="plugdev"
+
 # STLink v1
 ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE="664", GROUP="plugdev"
 
diff --git a/tcl/board/ti-cc3200-launchxl.cfg b/tcl/board/ti-cc3200-launchxl.cfg
new file mode 100644 (file)
index 0000000..fd80c53
--- /dev/null
@@ -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 (file)
index 0000000..6af809c
--- /dev/null
@@ -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 (executable)
index 0000000..ff65450
--- /dev/null
@@ -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