From b248dd0d3a0d2c629ec7570b7d49c16f5dd816ef Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Thu, 4 Nov 2021 10:53:17 -0300 Subject: [PATCH] Documentation: Fix openocd command instruction A user reported me an issue while following our documentation then looking his command line error I noticed the openocd stlink interface was wrong: st-link-v2.cfg -> stlink-v2.cfg --- Documentation/quickstart/debugging.rst | 4 ++-- Documentation/quickstart/running.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/quickstart/debugging.rst b/Documentation/quickstart/debugging.rst index cc3489eca88..afa897bdaef 100644 --- a/Documentation/quickstart/debugging.rst +++ b/Documentation/quickstart/debugging.rst @@ -59,7 +59,7 @@ start ``openocd`` with the following command: .. code-block:: console - $ openocd -f interface/st-link-v2.cfg -f target/stm32f1x.cfg + $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg This will start a ``gdb`` server. Then, start ``gdb`` with: @@ -138,7 +138,7 @@ Finally, to enable NuttX integration, you need to supply an additional ``openocd .. code-block:: console - $ openocd -f interface/st-link-v2.cfg -f target/stm32f1x.cfg -c '$_TARGETNAME configure -rtos nuttx' + $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c '$_TARGETNAME configure -rtos nuttx' Since ``openocd`` also needs to know the memory layout of certain datastructures, you need to have ``gdb`` run the following commands once the ``nuttx`` binary is loaded: diff --git a/Documentation/quickstart/running.rst b/Documentation/quickstart/running.rst index 6deb17df241..34b9d81a864 100644 --- a/Documentation/quickstart/running.rst +++ b/Documentation/quickstart/running.rst @@ -52,7 +52,7 @@ Now, to flash the binary to your board, connect the USB cable and do: .. code-block:: console $ cd nuttx/ - $ openocd -f interface/st-link-v2.cfg -f target/stm32f1x.cfg -c 'init' \ + $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c 'init' \ -c 'program nuttx/nuttx.bin verify reset' -c 'shutdown' Access NuttShell