]> git.sur5r.net Git - openocd/commitdiff
cfg: Added st nucleo board configs.
authorJens Hoffmann <jehoffma@gmail.com>
Wed, 5 Mar 2014 21:49:14 +0000 (22:49 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 17 Mar 2014 17:05:37 +0000 (17:05 +0000)
This patch adds board configs for Nucleo FXXX boards.

Change-Id: I25bfd7d63f734bad710917efa67bc6096aa60ef8
Signed-off-by: Jens Hoffmann <jehoffma@gmail.com>
Reviewed-on: http://openocd.zylin.com/2022
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
contrib/99-openocd.rules
tcl/board/st_nucleo_f030r8.cfg [new file with mode: 0644]
tcl/board/st_nucleo_f103rb.cfg [new file with mode: 0644]
tcl/board/st_nucleo_f401re.cfg [new file with mode: 0644]

index d2e86e1bbfcc95c187e7731c2ee24a04bb504814..44ab9cc87259ad7f1a48053324c0b32f3a8888a5 100644 (file)
@@ -60,6 +60,9 @@ ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE="664", GROUP="plugdev"
 # STLink v2
 ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="664", GROUP="plugdev"
 
+# STLink v2-1
+ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE="664", GROUP="plugdev"
+
 # Hilscher NXHX Boards
 ATTRS{idVendor}=="0640", ATTRS{idProduct}=="0028", MODE="664", GROUP="plugdev"
 
diff --git a/tcl/board/st_nucleo_f030r8.cfg b/tcl/board/st_nucleo_f030r8.cfg
new file mode 100644 (file)
index 0000000..5589c9c
--- /dev/null
@@ -0,0 +1,9 @@
+# This is an ST NUCLEO-F030R8 board with a single STM32F030R8T6 chip.
+# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259997
+
+source [find interface/stlink-v2-1.cfg]
+
+source [find target/stm32f0x_stlink.cfg]
+
+# use hardware reset, connect under reset
+reset_config srst_only srst_nogate
diff --git a/tcl/board/st_nucleo_f103rb.cfg b/tcl/board/st_nucleo_f103rb.cfg
new file mode 100644 (file)
index 0000000..8876db7
--- /dev/null
@@ -0,0 +1,9 @@
+# This is an ST NUCLEO F103RB board with a single STM32F103RBT6 chip.
+# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259875
+
+source [find interface/stlink-v2-1.cfg]
+
+source [find target/stm32f1x_stlink.cfg]
+
+# use hardware reset, connect under reset
+reset_config srst_only srst_nogate
diff --git a/tcl/board/st_nucleo_f401re.cfg b/tcl/board/st_nucleo_f401re.cfg
new file mode 100644 (file)
index 0000000..da84f14
--- /dev/null
@@ -0,0 +1,9 @@
+# This is an ST NUCLEO F401RE board with a single STM32F401RET6 chip.
+# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260000
+
+source [find interface/stlink-v2-1.cfg]
+
+source [find target/stm32f4x_stlink.cfg]
+
+# use hardware reset, connect under reset
+reset_config srst_only srst_nogate