2019-01-02 08:47:02 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-01-10 03:00:04 +08:00
|
|
|
set_ifndef(OPENSDA_FW jlink)
|
|
|
|
|
|
|
|
if(OPENSDA_FW STREQUAL jlink)
|
2019-06-01 07:51:31 +08:00
|
|
|
board_set_debugger_ifnset(jlink)
|
|
|
|
board_set_flasher_ifnset(jlink)
|
2019-01-10 03:00:04 +08:00
|
|
|
elseif(OPENSDA_FW STREQUAL daplink)
|
2019-06-01 07:51:31 +08:00
|
|
|
board_set_debugger_ifnset(pyocd)
|
|
|
|
board_set_flasher_ifnset(pyocd)
|
2019-01-10 03:00:04 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
board_runner_args(pyocd "--target=mimxrt1020")
|
2019-01-10 02:49:33 +08:00
|
|
|
board_runner_args(jlink "--device=MIMXRT1021xxx5A")
|
2019-01-10 03:00:04 +08:00
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
2019-01-02 08:47:02 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|