aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorAustin Phillips <austin_phillips@hotmail.com>2014-09-18 14:39:41 +1000
committerSpencer Oliver <spen@spen-soft.co.uk>2014-09-22 19:36:05 +0000
commit7568a91c8e2398a113f0b40a2a24a1b91ed12c95 (patch)
tree0973e42dfc8bbf61eced6085c4a5e7765b4a54c7 /tcl
parent3a4ec66b2427cd22b891a40dd63c778de28bb3c6 (diff)
downloadriscv-openocd-7568a91c8e2398a113f0b40a2a24a1b91ed12c95.zip
riscv-openocd-7568a91c8e2398a113f0b40a2a24a1b91ed12c95.tar.gz
riscv-openocd-7568a91c8e2398a113f0b40a2a24a1b91ed12c95.tar.bz2
Support hla_serial command for ST-LINK adapters.
The hla_serial command allows for a programming device serial number to be specified in addition to USB VID/PID. This allows for multiple ST-LINK/V2 programmers to be attached to a single machine and operated using openocd. Change-Id: I350654bf676eb26ba3a90450acfa55d2a5d2d791 Signed-off-by: Austin Phillips <austin_phillips@hotmail.com> Reviewed-on: http://openocd.zylin.com/2198 Tested-by: jenkins Reviewed-by: Martin Glunz <mg@wunderkis.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/interface/stlink-v2-1.cfg7
-rw-r--r--tcl/interface/stlink-v2.cfg7
2 files changed, 14 insertions, 0 deletions
diff --git a/tcl/interface/stlink-v2-1.cfg b/tcl/interface/stlink-v2-1.cfg
index e1bccbc..093e801 100644
--- a/tcl/interface/stlink-v2-1.cfg
+++ b/tcl/interface/stlink-v2-1.cfg
@@ -7,3 +7,10 @@ hla_layout stlink
hla_device_desc "ST-LINK/V2-1"
hla_vid_pid 0x0483 0x374b
+# Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2
+# devices seem to have serial numbers with unreadable characters. ST-LINK/V2
+# firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
+# number reset issues.
+# eg.
+#hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"
+
diff --git a/tcl/interface/stlink-v2.cfg b/tcl/interface/stlink-v2.cfg
index e145d63..ae545a1 100644
--- a/tcl/interface/stlink-v2.cfg
+++ b/tcl/interface/stlink-v2.cfg
@@ -7,3 +7,10 @@ hla_layout stlink
hla_device_desc "ST-LINK/V2"
hla_vid_pid 0x0483 0x3748
+# Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2
+# devices seem to have serial numbers with unreadable characters. ST-LINK/V2
+# firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
+# number reset issues.
+# eg.
+#hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"
+