boards: fk743m5: add pyocd runer support

add pyocd support and fix debug section in doc

Signed-off-by: Shan Pen <bricle031@gmail.com>
This commit is contained in:
Shan Pen 2025-05-31 07:06:14 +08:00 committed by Fabio Baltieri
commit b194050402
2 changed files with 15 additions and 1 deletions

View file

@ -3,7 +3,9 @@
board_runner_args(openocd --target-handle=_CHIPNAME.cpu0)
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
board_runner_args(jlink "--device=STM32H743XI" "--speed=4000")
board_runner_args(pyocd "--target=STM32H743XIHx")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

View file

@ -122,7 +122,19 @@ Then, press the RESET button, you should see the following message:
Debugging
=========
This current Zephyr port does not support debugging.
You can debug an application using the SWD interface with a J-Link or ST-Link. For more
details, please refer to the `Flashing`_ section and run the ``west debug`` command
instead of ``west flash``.
Here is an example for the :zephyr:code-sample:`hello_world`
application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: fk743m5_xih6
:goals: debug
:flash-args: -r pyocd
:compact:
References
**********