From f0c16f8ef17e6f7c6e93accfe7b9fb0d26ecbf70 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Fri, 1 Oct 2021 10:33:11 +0200 Subject: [PATCH] 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 --- boards/arm/b_u585i_iot02a/doc/index.rst | 20 +++++++------------ .../nucleo_u575zi_q/doc/nucleou575zi_q.rst | 20 +++++++------------ 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/boards/arm/b_u585i_iot02a/doc/index.rst b/boards/arm/b_u585i_iot02a/doc/index.rst index 24bccc3c2a8..02da73cfafb 100644 --- a/boards/arm/b_u585i_iot02a/doc/index.rst +++ b/boards/arm/b_u585i_iot02a/doc/index.rst @@ -255,9 +255,9 @@ Debugging STM32U5 support is not currently supported in openocd. As a temporary workaround, user can use `STMicroelectronics customized version of OpenOCD`_ to debug the the B_U585I_IOT02A Discovery kit. -For this you need to fetch this repo and build openocd following the instructions -provided in the README of the project. Then, build zephyr project indicating the -openocd location in west build command. +For this you need to fetch this repo, checkout branch "openocd-cubeide-r3" and +build openocd following the instructions provided in the README of the project. +Then, build zephyr project indicating the openocd location in west build command. Here is an example for the :ref:`blinky-sample` application. @@ -269,17 +269,11 @@ Here is an example for the :ref:`blinky-sample` application. Then, indicate openocd as the chosen runner in flash and debug commands: -.. zephyr-app-commands:: - :zephyr-app: samples/basic/blinky - :board: b_u585i_iot02a - :gen-args: -r openocd - :goals: flash -.. zephyr-app-commands:: - :zephyr-app: samples/basic/blinky - :board: nucleo_u575zi_q - :gen-args: -r openocd - :goals: debug + .. code-block:: console + + $ west flash -r openocd + $ west debug -r openocd .. _B U585I IOT02A Discovery kit website: diff --git a/boards/arm/nucleo_u575zi_q/doc/nucleou575zi_q.rst b/boards/arm/nucleo_u575zi_q/doc/nucleou575zi_q.rst index 681f59017a3..1141a2a3196 100644 --- a/boards/arm/nucleo_u575zi_q/doc/nucleou575zi_q.rst +++ b/boards/arm/nucleo_u575zi_q/doc/nucleou575zi_q.rst @@ -240,9 +240,9 @@ Debugging STM32U5 support is not currently supported in openocd. As a temporary workaround, user can use `STMicroelectronics customized version of OpenOCD`_ to debug the the Nucleo U575ZI Q. -For this you need to fetch this repo and build openocd following the instructions -provided in the README of the project. Then, build zephyr project indicating the -openocd location in west build command. +For this you need to fetch this repo, checkout branch "openocd-cubeide-r3" and +build openocd following the instructions provided in the README of the project. +Then, build zephyr project indicating the openocd location in west build command. Here is an example for the :ref:`blinky-sample` application. @@ -254,17 +254,11 @@ Here is an example for the :ref:`blinky-sample` application. Then, indicate openocd as the chosen runner in flash and debug commands: -.. zephyr-app-commands:: - :zephyr-app: samples/basic/blinky - :board: nucleo_u575zi_q - :gen-args: -r openocd - :goals: flash -.. zephyr-app-commands:: - :zephyr-app: samples/basic/blinky - :board: nucleo_u575zi_q - :gen-args: -r openocd - :goals: debug + .. code-block:: console + + $ west flash -r openocd + $ west debug -r openocd .. _STM32 Nucleo-144 board User Manual: