2017-08-03 21:35:35 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
set_ifndef(LPCLINK_FW jlink)
|
|
|
|
|
|
|
|
if(LPCLINK_FW STREQUAL jlink)
|
2019-06-01 07:51:31 +08:00
|
|
|
board_set_debugger_ifnset(jlink)
|
|
|
|
board_set_flasher_ifnset(jlink)
|
2017-08-03 21:35:35 +08:00
|
|
|
endif()
|
|
|
|
|
2018-10-29 05:25:39 +08:00
|
|
|
if(CONFIG_BOARD_LPCXPRESSO54114_M4)
|
2019-02-12 04:09:11 +08:00
|
|
|
board_runner_args(jlink "--device=LPC54114J256_M4" "--reset-after-load")
|
2018-10-29 05:25:39 +08:00
|
|
|
elseif(CONFIG_BOARD_LPCXPRESSO54114_M0)
|
2019-02-12 04:09:11 +08:00
|
|
|
board_runner_args(jlink "--device=LPC54114J256_M0" "--reset-after-load")
|
2018-10-29 05:25:39 +08:00
|
|
|
endif()
|
2017-08-03 21:35:35 +08:00
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|