1#
2# Copyright (c) 2021, NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7if(CONFIG_SOC_MIMXRT1166_CM7 OR CONFIG_SECOND_CORE_MCUX)
8board_runner_args(pyocd "--target=mimxrt1160_cm7")
9board_runner_args(jlink "--device=MIMXRT1166xxx6_M7" "--reset-after-load")
10board_runner_args(linkserver  "--device=MIMXRT1166xxxxx:MIMXRT1160-EVK")
11elseif(CONFIG_SOC_MIMXRT1166_CM4)
12board_runner_args(pyocd "--target=mimxrt1160_cm4")
13# Note: Please use JLINK above V7.50 (Only support run cm4 image when debugging due to default boot core on board is cm7 core)
14board_runner_args(jlink "--device=MIMXRT1166xxx6_M4")
15endif()
16
17include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
18include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
19include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
20