boards: st: stm32g0316: Use openocd as debug interface.

Default pyocd configuration doesn't allow debugging on this board.
Now that Zephyr openocd version support stm32g0 series, use it instead
of pyocd.
This commit provides working openocd configuration for this board
an update documentation.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou 2024-03-01 14:25:56 +01:00 committed by Fabio Baltieri
parent c63ad6c915
commit 15cb9bcab5
3 changed files with 8 additions and 8 deletions

View file

@ -3,6 +3,7 @@ board_runner_args(pyocd "--target=stm32g031j6mx")
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
board_runner_args(jlink "--device=STM32G031J6" "--speed=4000")
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)

View file

@ -88,14 +88,8 @@ Flashing
========
The STM32G0316-DISCO 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 stm32g031j6
interface.
This interface is supported by the openocd version included in the Zephyr SDK.
Flashing an application to the STM32G0316-DISCO
-----------------------------------------------

View file

@ -0,0 +1,5 @@
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/stm32g0x.cfg]