1# Copyright (c) 2019 Nordic Semiconductor ASA
2# Copyright (c) 2021 Laird Connectivity
3# SPDX-License-Identifier: Apache-2.0
4
5if(CONFIG_BOARD_BL5340_DVK_CPUAPP_NS)
6  set(TFM_PUBLIC_KEY_FORMAT "full")
7endif()
8
9if(CONFIG_BOARD_BL5340_DVK_CPUAPP OR CONFIG_BOARD_BL5340_DVK_CPUAPP_NS)
10board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
11endif()
12
13if(CONFIG_TFM_FLASH_MERGED_BINARY)
14  set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
15endif()
16
17if(CONFIG_BOARD_BL5340_DVK_CPUNET)
18board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
19endif()
20
21include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
22include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
23