]> git.sur5r.net Git - openocd/commitdiff
STLINK: add stlink v1 configuration
authorMathias K <kesmtp@freenet.de>
Mon, 23 Jan 2012 19:06:01 +0000 (20:06 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 27 Jan 2012 19:25:58 +0000 (19:25 +0000)
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>
tcl/board/stm32f4discovery.cfg
tcl/interface/stlink-usb.cfg [deleted file]
tcl/interface/stlink-v1.cfg [new file with mode: 0644]
tcl/interface/stlink-v2.cfg [new file with mode: 0644]

index 33bcaa61c265b4da7a96504363af534937c20bf5..98125e171084af906bf9dcc0987a3218401085c0 100644 (file)
@@ -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-usb.cfg b/tcl/interface/stlink-usb.cfg
deleted file mode 100644 (file)
index 2757a33..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# STMicroelectronics ST-LINK/V2 in-circuit debugger/programmer
-#
-
-interface stlink
-stlink_layout usb
-stlink_device_desc "ST-LINK/V2"
-stlink_vid_pid 0x0483 0x3748
-#
-# dummy values, not really needed
-#
-adapter_khz 1
-reset_config trst_and_srst
\ No newline at end of file
diff --git a/tcl/interface/stlink-v1.cfg b/tcl/interface/stlink-v1.cfg
new file mode 100644 (file)
index 0000000..d351324
--- /dev/null
@@ -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-v2.cfg b/tcl/interface/stlink-v2.cfg
new file mode 100644 (file)
index 0000000..2757a33
--- /dev/null
@@ -0,0 +1,13 @@
+#
+# STMicroelectronics ST-LINK/V2 in-circuit debugger/programmer
+#
+
+interface stlink
+stlink_layout usb
+stlink_device_desc "ST-LINK/V2"
+stlink_vid_pid 0x0483 0x3748
+#
+# dummy values, not really needed
+#
+adapter_khz 1
+reset_config trst_and_srst
\ No newline at end of file