Skip to content

Commit d9d6b59

Browse files
erwangonashif
authored andcommitted
boards: nucleo_wb55rg: Enable flash and debug with pyocd
stm32wb is not yet supported on openocd. But support on pyocd can be enabled thanks to "pack" feature. Configure board runner with pyocd and provide guidelines to configure pyocd. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent e6a4839 commit d9d6b59

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
1+
# SPDX-License-Identifier: Apache-2.0
2+
board_runner_args(pyocd "--target=stm32wb55rgvx")
3+
4+
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,13 @@ Flashing
214214
========
215215

216216
Nucleo WB55RG board includes an ST-LINK/V2-1 embedded debug tool
217-
interface. This interface is not yet supported by the openocd version
218-
included in the Zephyr SDK. You can flash your application with drag and drop
219-
in the drive mounted when plugging your nucleo board to your PC.
217+
interface. This interface is not yet supported by the openocd version.
218+
Instead, support can be enabled on pyocd by adding "pack" support with
219+
the following pyocd command:
220+
221+
.. code-block:: console
222+
223+
$ pyocd pack --install stm32wb55rg
220224
221225
222226
Flashing an application to Nucleo WB55RG
@@ -237,7 +241,7 @@ Then build and flash the application.
237241
.. zephyr-app-commands::
238242
:zephyr-app: samples/hello_world
239243
:board: nucleo_wb55rg
240-
:goals: build
244+
:goals: build flash
241245

242246
You should see the following message on the console:
243247

@@ -248,18 +252,11 @@ You should see the following message on the console:
248252
Debugging
249253
=========
250254

251-
While STM32WB55RG is not yet supported you can debug an application using pyocd.
252-
Here is an example for the :ref:`hello_world` application.
253-
Start pyocd gdbserver on your machine:
254-
255-
.. code-block:: console
256-
257-
$ pyocd gdbserver
258-
259-
Then launch debug on your board:
255+
You can debug an application in the usual way. Here is an example for the
256+
:ref:`blinky-sample` application.
260257

261258
.. zephyr-app-commands::
262-
:zephyr-app: samples/hello_world
259+
:zephyr-app: samples/basic/blinky
263260
:board: nucleo_wb55rg
264261
:maybe-skip-config:
265262
:goals: debug

0 commit comments

Comments
 (0)