aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2012-01-23 20:06:01 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-27 19:25:58 +0000
commitfce4ac57140d4312dd229c7d5f149a340c92cda1 (patch)
tree82c31533fa5b4319259ec492fd98201fbd71acee /tcl
parent571db4379129c7f700c71220fa3df5f80e575c89 (diff)
downloadriscv-openocd-fce4ac57140d4312dd229c7d5f149a340c92cda1.zip
riscv-openocd-fce4ac57140d4312dd229c7d5f149a340c92cda1.tar.gz
riscv-openocd-fce4ac57140d4312dd229c7d5f149a340c92cda1.tar.bz2
STLINK: add stlink v1 configuration
Change-Id: I6b9de16879ff928d60e3c4a64731449275291cc2 Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/397 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/stm32f4discovery.cfg2
-rw-r--r--tcl/interface/stlink-v1.cfg13
-rw-r--r--tcl/interface/stlink-v2.cfg (renamed from tcl/interface/stlink-usb.cfg)0
3 files changed, 14 insertions, 1 deletions
diff --git a/tcl/board/stm32f4discovery.cfg b/tcl/board/stm32f4discovery.cfg
index 33bcaa6..98125e1 100644
--- a/tcl/board/stm32f4discovery.cfg
+++ b/tcl/board/stm32f4discovery.cfg
@@ -1,6 +1,6 @@
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp
-source [find interface/stlink-usb.cfg]
+source [find interface/stlink-v2.cfg]
source [find target/stm32f4x_stlink.cfg]
diff --git a/tcl/interface/stlink-v1.cfg b/tcl/interface/stlink-v1.cfg
new file mode 100644
index 0000000..d351324
--- /dev/null
+++ b/tcl/interface/stlink-v1.cfg
@@ -0,0 +1,13 @@
+#
+# STMicroelectronics ST-LINK/V1 in-circuit debugger/programmer
+#
+
+interface stlink
+stlink_layout sg
+stlink_device_desc "ST-LINK/V1"
+stlink_vid_pid 0x0483 0x3744
+#
+# dummy values, not really needed
+#
+adapter_khz 1
+reset_config trst_and_srst
diff --git a/tcl/interface/stlink-usb.cfg b/tcl/interface/stlink-v2.cfg
index 2757a33..2757a33 100644
--- a/tcl/interface/stlink-usb.cfg
+++ b/tcl/interface/stlink-v2.cfg