1# nRF52840 MDK USB Dongle board configuration 2# 3# Copyright (c) 2018 Nordic Semiconductor ASA 4# 5# Copyright (c) 2022 Nikola Trifunovic 6# 7# SPDX-License-Identifier: Apache-2.0 8 9if BOARD_NRF52840_MDK_USB_DONGLE 10 11config BOARD 12 default "nrf52840_mdk_usb_dongle" 13 14# To let the nRF5 bootloader load an application, the application 15# must be linked after Nordic MBR, that is factory-programmed on the board. 16 17# Nordic nRF5 bootloader exists outside of the partitions specified in the 18# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application 19# correctly, after Nordic MBR. 20 21# When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION 22# which will make it link into the correct partition specified in DTS file, 23# so no override is necessary. 24 25config FLASH_LOAD_OFFSET 26 default 0x1000 27 depends on BOARD_HAS_NRF5_BOOTLOADER && !USE_DT_CODE_PARTITION 28 29if USB_DEVICE_STACK 30 31# Enable UART driver, needed for CDC ACM 32config SERIAL 33 default y 34 35endif # USB_DEVICE_STACK 36 37config BT_CTLR 38 default BT 39 40endif # BOARD_NRF52840_MDK_USB_DONGLE 41