Commit 8a021b49 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Christopher Friedt
Browse files

boards: nucleo_g071rb: Set openocd as default flash & debug i/f



Zephyr SDK now features an openocd version compatible
with stm32g0 targets.
Set openocd as the default zephyr runner for this target.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 146d9a85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ board_runner_args(pyocd "--flash-opt=-O connect_mode=under-reset")
board_runner_args(jlink "--device=STM32G071RB" "--speed=4000")
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset=hw")

include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
+1 −21
Original line number Diff line number Diff line
@@ -154,27 +154,7 @@ flashed in the usual way (see :ref:`build_an_application` and
Flashing
========

Nucleo G071RB board includes an ST-LINK/V2-1 embedded debug tool interface.

This interface is not yet supported by the openocd version included in the Zephyr SDK.

Instead, support can be enabled on pyocd by adding "pack" support with
the following pyocd command:

.. code-block:: console

   $ pyocd pack --update
   $ pyocd pack --install stm32g071rb

Note:
To manually enable the openocd interface, You can still update, compile and install
a 'local' openocd from the official openocd repo http://openocd.zylin.com .
Then run the following openocd command where the '/usr/local/bin/openocd'is your path
for the freshly installed openocd, given by "$ which openocd" :

.. code-block:: console

   $ west flash --openocd /usr/local/bin/openocd
Nucleo G071RB board includes an ST-LINK/V3 embedded debug tool interface.

Flashing an application to Nucleo G071RB
----------------------------------------