zephyr/boards/arm/lpcxpresso55s69/board.cmake
Maureen Helm aa8e13c3ff boards: lpcxpresso55s69: Enable pyocd runner
Enables the pyocd runner on the lpcxpresso55s69 board. Note that this
currently requires building pycod from source to pick up fixes in
https://github.com/mbedmicro/pyOCD/pull/690

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2019-07-10 03:44:19 -05:00

29 lines
670 B
CMake

#
# Copyright (c) 2019, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
## DAP Link implementation in pyocd is underway,
## until then jlink can be used or copy image to storage
set_ifndef(OPENSDA_FW jlink)
if(OPENSDA_FW STREQUAL jlink)
board_set_debugger_ifnset(jlink)
board_set_flasher_ifnset(jlink)
endif()
if(CONFIG_BOARD_LPCXPRESSO55S69_CPU0)
board_runner_args(jlink "--device=LPC55S69_core0")
endif()
if(CONFIG_BOARD_LPCXPRESSO55S69_CPU1)
board_runner_args(jlink "--device=LPC55S69_core1")
endif()
board_runner_args(pyocd "--target=lpc55s69")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)