diff --git a/boards/fanke/fk743m5_xih6/board.cmake b/boards/fanke/fk743m5_xih6/board.cmake index 10170d65424..a85d044e0a1 100644 --- a/boards/fanke/fk743m5_xih6/board.cmake +++ b/boards/fanke/fk743m5_xih6/board.cmake @@ -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) \ No newline at end of file diff --git a/boards/fanke/fk743m5_xih6/doc/index.rst b/boards/fanke/fk743m5_xih6/doc/index.rst index 0c7dbbfbe44..636b0365740 100644 --- a/boards/fanke/fk743m5_xih6/doc/index.rst +++ b/boards/fanke/fk743m5_xih6/doc/index.rst @@ -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 **********