Skip to content

Commit d2c5f05

Browse files
erwangocfriedt
authored andcommitted
boards: stm32u5: Fix instructions to use openocd
Instructions to use openocd on stm32u5 based platforms were missing an instruction on the branch to use. Also, the console excerpt were not rendering correctly, so fix them. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 708951e commit d2c5f05

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

boards/arm/b_u585i_iot02a/doc/index.rst

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ Debugging
255255
STM32U5 support is not currently supported in openocd. As a temporary workaround,
256256
user can use `STMicroelectronics customized version of OpenOCD`_ to debug the
257257
the B_U585I_IOT02A Discovery kit.
258-
For this you need to fetch this repo and build openocd following the instructions
259-
provided in the README of the project. Then, build zephyr project indicating the
260-
openocd location in west build command.
258+
For this you need to fetch this repo, checkout branch "openocd-cubeide-r3" and
259+
build openocd following the instructions provided in the README of the project.
260+
Then, build zephyr project indicating the openocd location in west build command.
261261

262262
Here is an example for the :ref:`blinky-sample` application.
263263

@@ -269,17 +269,11 @@ Here is an example for the :ref:`blinky-sample` application.
269269

270270
Then, indicate openocd as the chosen runner in flash and debug commands:
271271

272-
.. zephyr-app-commands::
273-
:zephyr-app: samples/basic/blinky
274-
:board: b_u585i_iot02a
275-
:gen-args: -r openocd
276-
:goals: flash
277272

278-
.. zephyr-app-commands::
279-
:zephyr-app: samples/basic/blinky
280-
:board: nucleo_u575zi_q
281-
:gen-args: -r openocd
282-
:goals: debug
273+
.. code-block:: console
274+
275+
$ west flash -r openocd
276+
$ west debug -r openocd
283277
284278
285279
.. _B U585I IOT02A Discovery kit website:

boards/arm/nucleo_u575zi_q/doc/nucleou575zi_q.rst

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ Debugging
240240
STM32U5 support is not currently supported in openocd. As a temporary workaround,
241241
user can use `STMicroelectronics customized version of OpenOCD`_ to debug the
242242
the Nucleo U575ZI Q.
243-
For this you need to fetch this repo and build openocd following the instructions
244-
provided in the README of the project. Then, build zephyr project indicating the
245-
openocd location in west build command.
243+
For this you need to fetch this repo, checkout branch "openocd-cubeide-r3" and
244+
build openocd following the instructions provided in the README of the project.
245+
Then, build zephyr project indicating the openocd location in west build command.
246246

247247
Here is an example for the :ref:`blinky-sample` application.
248248

@@ -254,17 +254,11 @@ Here is an example for the :ref:`blinky-sample` application.
254254

255255
Then, indicate openocd as the chosen runner in flash and debug commands:
256256

257-
.. zephyr-app-commands::
258-
:zephyr-app: samples/basic/blinky
259-
:board: nucleo_u575zi_q
260-
:gen-args: -r openocd
261-
:goals: flash
262257

263-
.. zephyr-app-commands::
264-
:zephyr-app: samples/basic/blinky
265-
:board: nucleo_u575zi_q
266-
:gen-args: -r openocd
267-
:goals: debug
258+
.. code-block:: console
259+
260+
$ west flash -r openocd
261+
$ west debug -r openocd
268262
269263
270264
.. _STM32 Nucleo-144 board User Manual:

0 commit comments

Comments
 (0)