]> git.sur5r.net Git - openocd/commitdiff
Provide genuine F3 nucleo config and source it for STM32F334 Discovery board.
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Thu, 11 Dec 2014 15:24:27 +0000 (16:24 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 22 Feb 2015 17:59:55 +0000 (17:59 +0000)
The F334 disco board has a stlink V.2-1 as F3 nucleo boards. Normal F3 disco
boards use stlink v2 and can't ne used.

Change-Id: I77ebef93b184592f25ff18bb2da776d636f60ff0
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/2434
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
tcl/board/st_nucleo_f3.cfg [new file with mode: 0644]
tcl/board/st_nucleo_f334r8.cfg [deleted file]
tcl/board/stm32f334discovery.cfg [new file with mode: 0644]

diff --git a/tcl/board/st_nucleo_f3.cfg b/tcl/board/st_nucleo_f3.cfg
new file mode 100644 (file)
index 0000000..9dffdcb
--- /dev/null
@@ -0,0 +1,10 @@
+# This is an ST NUCLEO F334R8 board with a single STM32F334R8T6 chip.
+# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260004
+
+source [find interface/stlink-v2-1.cfg]
+
+transport select hla_swd
+
+source [find target/stm32f3x.cfg]
+
+reset_config srst_only
diff --git a/tcl/board/st_nucleo_f334r8.cfg b/tcl/board/st_nucleo_f334r8.cfg
deleted file mode 100644 (file)
index 9dffdcb..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# This is an ST NUCLEO F334R8 board with a single STM32F334R8T6 chip.
-# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260004
-
-source [find interface/stlink-v2-1.cfg]
-
-transport select hla_swd
-
-source [find target/stm32f3x.cfg]
-
-reset_config srst_only
diff --git a/tcl/board/stm32f334discovery.cfg b/tcl/board/stm32f334discovery.cfg
new file mode 100644 (file)
index 0000000..be817d7
--- /dev/null
@@ -0,0 +1,6 @@
+# This is an STM32F334 discovery board with a single STM32F334C8T6 chip.
+# As it is one of the few boards with stlink V.2-1, we source the corresponding
+# nucleo file.
+# http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/LN1848/PF260318
+
+source [find board/st_nucleo_f3.cfg]