aboutsummaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>2020-03-01 23:11:10 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-09-04 07:25:20 +0000
commit57c61cee4b538b449421bc6ff8ebca5be70e60b1 (patch)
tree741e1ed9307a3d88f25cdddb43e91ac38a892427 /tcl/board
parentbe22b93a445b26213860617bdb9c3c2c35806bef (diff)
downloadriscv-openocd-57c61cee4b538b449421bc6ff8ebca5be70e60b1.zip
riscv-openocd-57c61cee4b538b449421bc6ff8ebca5be70e60b1.tar.gz
riscv-openocd-57c61cee4b538b449421bc6ff8ebca5be70e60b1.tar.bz2
tcl/board: add st_nucleo_g4.cfg to cover known STM32G4 NUCLEO boards
known boards are NUCLEO-G431KB, NUCLEO-G431RB and NUCLEO-G474RE note: this work safely with B-G431B-ESC1, B-G474E-DPOW1, STM32G474E-EVAL and STM32G484E-EVAL Change-Id: I132a97e1816620b182983edc8a4b272b52b9241d Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/5484 Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/st_nucleo_g4.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/tcl/board/st_nucleo_g4.cfg b/tcl/board/st_nucleo_g4.cfg
new file mode 100644
index 0000000..8e583e7
--- /dev/null
+++ b/tcl/board/st_nucleo_g4.cfg
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# This is for all ST NUCLEO with any STM32G4. Known boards at the moment:
+# NUCLEO-G431KB
+# https://www.st.com/en/evaluation-tools/nucleo-g431kb.html
+# NUCLEO-G431RB
+# https://www.st.com/en/evaluation-tools/nucleo-g431rb.html
+# NUCLEO-G474RE
+# https://www.st.com/en/evaluation-tools/nucleo-g474re.html
+# NUCLEO-G491RE
+# https://www.st.com/en/evaluation-tools/nucleo-g491re.html
+
+source [find interface/stlink.cfg]
+
+transport select hla_swd
+
+source [find target/stm32g4x.cfg]
+
+reset_config srst_only