diff --git a/boards/st/nucleo_wb09ke/board.cmake b/boards/st/nucleo_wb09ke/board.cmake index 10041643921..7f80e9325ae 100644 --- a/boards/st/nucleo_wb09ke/board.cmake +++ b/boards/st/nucleo_wb09ke/board.cmake @@ -1,7 +1,8 @@ # SPDX-License-Identifier: Apache-2.0 # keep first board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=sw" "--start-address=0x10000000") +board_runner_args(pyocd "--target=stm32wb09kevx") # keep first include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) -include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) +include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) diff --git a/boards/st/nucleo_wb09ke/doc/index.rst b/boards/st/nucleo_wb09ke/doc/index.rst index ccd9b796c49..854e83c7ed8 100644 --- a/boards/st/nucleo_wb09ke/doc/index.rst +++ b/boards/st/nucleo_wb09ke/doc/index.rst @@ -121,6 +121,15 @@ You can debug an application in the usual way. Here is an example for the :maybe-skip-config: :goals: debug +.. warning:: + Application debugging on this board uses the pyOCD runner, which requires an additional pack + to be installed beforehand. This can be performed using the following commands: + + .. code-block:: console + + $ pyocd pack update + $ pyocd pack install stm32wb0 + .. _`Nucleo WB09KE webpage`: https://www.st.com/en/evaluation-tools/nucleo-wb09ke.html diff --git a/boards/st/nucleo_wb09ke/support/openocd.cfg b/boards/st/nucleo_wb09ke/support/openocd.cfg deleted file mode 100644 index 6d294443fcf..00000000000 --- a/boards/st/nucleo_wb09ke/support/openocd.cfg +++ /dev/null @@ -1,5 +0,0 @@ -source [find interface/stlink-dap.cfg] - -transport select "dapdirect_swd" - -source [find target/stm32wb0x.cfg]