1# 2# Copyright (c) 2021, NXP 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7if(CONFIG_SOC_MIMXRT1176_CM7 OR CONFIG_SECOND_CORE_MCUX) 8 board_runner_args(pyocd "--target=mimxrt1170_cm7") 9 board_runner_args(jlink "--device=MIMXRT1176xxxA_M7" "--reset-after-load") 10 # ITCM is not defined in RT1170's LinkServer device file 11 board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x00000000\",\ 12 \"size\":\"0x00040000\",\"type\":\"RAM\"\}") 13 14 if(${BOARD_REVISION} STREQUAL "A") 15 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVK") 16 elseif(${BOARD_REVISION} STREQUAL "B") 17 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVKB") 18 endif() 19 20 board_runner_args(linkserver "--core=cm7") 21elseif(CONFIG_SOC_MIMXRT1176_CM4) 22 board_runner_args(pyocd "--target=mimxrt1170_cm4") 23 # Note: Please use JLINK above V7.50 (Only support run cm4 image when debugging due to default boot core on board is cm7 core) 24 board_runner_args(jlink "--device=MIMXRT1176xxxA_M4") 25 if(${BOARD_REVISION} STREQUAL "A") 26 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVK") 27 elseif(${BOARD_REVISION} STREQUAL "B") 28 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVKB") 29 endif() 30 board_runner_args(linkserver "--core=cm4") 31endif() 32 33include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake) 34include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) 35include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) 36