Commit 146d9a85 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Christopher Friedt
Browse files

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



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

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 24007fb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,5 +4,5 @@
# to allow board re-flashing (see PR #23230)
board_runner_args(pyocd "--target=stm32g474rbtx")

include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
+0 −20
Original line number Diff line number Diff line
@@ -197,26 +197,6 @@ Flashing

Nucleo G474RE board includes an ST-LINK/V3E 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 stm32g474re

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

Flashing an application to Nucleo G474RE
----------------------------------------