15 lines
801 B
CMake
15 lines
801 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
board_runner_args(pyocd "--target=nrf52833")
|
|
board_runner_args(nrfjprog "--nrf-family=NRF52")
|
|
board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000")
|
|
set(OPENOCD_NRF5_SUBFAMILY "nrf52")
|
|
# Note: micro:bit v2 DAPLink may be upgraded to J-Link OB by following the instructions at
|
|
# https://www.segger.com/products/debug-probes/j-link/models/other-j-links/bbc-microbit-j-link-upgrade/
|
|
# in which case the following line should be removed to default back to "jlink" OpenOCD interface
|
|
set(OPENOCD_NRF5_INTERFACE "cmsis-dap")
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
|