From 02afc352e3cac45071fcae3137e029629c710a97 Mon Sep 17 00:00:00 2001 From: Thomas Stranger Date: Wed, 28 Aug 2024 18:11:47 +0200 Subject: [PATCH] boards: st: nucleo_g0b1re: update pyocd target Update the pyocd runner configuration of the nucleo_g0b1re to use the correct target. Pyocd had issues only just after the release of the G0B1/C1 line. This issue has already been fixed a few releases ago. Signed-off-by: Thomas Stranger --- boards/st/nucleo_g0b1re/board.cmake | 4 +--- boards/st/nucleo_g0b1re/doc/index.rst | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/boards/st/nucleo_g0b1re/board.cmake b/boards/st/nucleo_g0b1re/board.cmake index 7a83f9d6a46..40365ef6885 100644 --- a/boards/st/nucleo_g0b1re/board.cmake +++ b/boards/st/nucleo_g0b1re/board.cmake @@ -3,9 +3,7 @@ # keep first board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") -# keil.stm32g0xx_dfp.1.3.0.pack introduced stm32g0b series, but the target does -# not work with pyocd currently. -board_runner_args(pyocd "--target=stm32g071rbtx") +board_runner_args(pyocd "--target=stm32g0b1retx") board_runner_args(pyocd "--flash-opt=-O reset_type=hw") board_runner_args(pyocd "--flash-opt=-O connect_mode=under-reset") board_runner_args(jlink "--device=STM32G0B1RE" "--speed=4000") diff --git a/boards/st/nucleo_g0b1re/doc/index.rst b/boards/st/nucleo_g0b1re/doc/index.rst index d5f73d75cc8..ba5f8600558 100644 --- a/boards/st/nucleo_g0b1re/doc/index.rst +++ b/boards/st/nucleo_g0b1re/doc/index.rst @@ -168,10 +168,8 @@ the ``--runner`` (or ``-r``) option: $ west flash --runner jlink $ west flash --runner pyocd -Pyocd support is currently limited: As the stm32g0b1 target causes issues, -the stm32g071 target is used. For STM32G0 support pyOCD needs additional target -information, which can be installed by adding "pack" support with the -following pyOCD commands: +For STM32G0 support pyocd needs additional target information, +which can be installed by adding "pack" support with the following pyocd command: .. code-block:: console