Skip to content
Permalink
Browse files

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 <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and nashif committed Jun 18, 2019
1 parent e6a4839 commit d9d6b59e2c2e2ca6f6c28f96c59f037982c230d0
Showing with 15 additions and 15 deletions.
  1. +4 −1 boards/arm/nucleo_wb55rg/board.cmake
  2. +11 −14 boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst
@@ -1 +1,4 @@
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
# SPDX-License-Identifier: Apache-2.0
board_runner_args(pyocd "--target=stm32wb55rgvx")

include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
@@ -214,9 +214,13 @@ Flashing
========

Nucleo WB55RG 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. You can flash your application with drag and drop
in the drive mounted when plugging your nucleo board to your PC.
interface. This interface is not yet supported by the openocd version.
Instead, support can be enabled on pyocd by adding "pack" support with
the following pyocd command:

.. code-block:: console

$ pyocd pack --install stm32wb55rg


Flashing an application to Nucleo WB55RG
@@ -237,7 +241,7 @@ Then build and flash the application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nucleo_wb55rg
:goals: build
:goals: build flash

You should see the following message on the console:

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

While STM32WB55RG is not yet supported you can debug an application using pyocd.
Here is an example for the :ref:`hello_world` application.
Start pyocd gdbserver on your machine:

.. code-block:: console

$ pyocd gdbserver

Then launch debug on your board:
You can debug an application in the usual way. Here is an example for the
:ref:`blinky-sample` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:zephyr-app: samples/basic/blinky
:board: nucleo_wb55rg
:maybe-skip-config:
:goals: debug

0 comments on commit d9d6b59

Please sign in to comment.
You can’t perform that action at this time.