boards: arm: stm32f303 nucleo with pyocd and cubeprogrammer as runner
Add the pyocd ant the stm32cubeprogrammer as a runner of the
nucleo_f303k8 platforms,
when the openocd gives an flashing error.
Add the pyocd pack if needed : 'pyocd pack install stm32f303'
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=STM32F303K8" "--speed=4000")
+board_runner_args(pyocd "--target=stm32f303k8tx")
+board_runner_args(pyocd "--flash-opt=-O reset_type=hw")
+board_runner_args(pyocd "--flash-opt=-O connect_mode=under-reset")
+board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")
+include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
+include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
