This is an automated email from Gerrit.

Spencer Oliver (s...@spen-soft.co.uk) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/443

-- gerrit

commit 31b2b64a5a557e957cd753a2cf54669db762a194
Author: Spencer Oliver <s...@spen-soft.co.uk>
Date:   Fri Feb 10 12:29:31 2012 +0000

    cfg: add ST-LINK TRANSPORT config override
    
    This enables the user to override the transport used for st-link.
    If JTAG is selected it will also change the default id used to the JTAG id
    rather than the SW-DP id.
    
    Change-Id: I4fe352e4932e2f4ec278168e99ba2d2d50fd850a
    Signed-off-by: Spencer Oliver <s...@spen-soft.co.uk>

diff --git a/tcl/target/stm32_stlink.cfg b/tcl/target/stm32_stlink.cfg
index 9a67b99..4b8abeb 100644
--- a/tcl/target/stm32_stlink.cfg
+++ b/tcl/target/stm32_stlink.cfg
@@ -23,10 +23,22 @@ if { [info exists CPUTAPID] } {
    set _CPUTAPID 0x1ba01477
 }
 
+if { [info exists TRANSPORT] } {
+   set _TRANSPORT $TRANSPORT
+   if { $TRANSPORT == "stlink_jtag" } {
+      if { [info exists CPUTAPID] == 0 } {
+         # jtag requires us to use the jtag tap id
+         set _CPUTAPID 0x3ba00477
+      }
+   }
+} else {
+   set _TRANSPORT stlink_swd
+}
+
 #
 # possibles value are stlink_swd or stlink_jtag
 #
-transport select stlink_swd
+transport select $_TRANSPORT
 
 stlink newtap $_CHIPNAME cpu -expected-id $_CPUTAPID
 

-- 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to