1# nRF52840 Dongle NRF52840 board configuration 2# 3# Copyright (c) 2018-2023 Nordic Semiconductor ASA 4# 5# SPDX-License-Identifier: Apache-2.0 6 7if BOARD_NRF52840DONGLE 8 9# To let the nRF5 bootloader load an application, the application 10# must be linked after Nordic MBR, that is factory-programmed on the board. 11 12# Nordic nRF5 bootloader exists outside of the partitions specified in the 13# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application 14# correctly, after Nordic MBR. 15 16# When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION 17# which will make it link into the correct partition specified in DTS file, 18# the offset is applied here so that the full partition size can be used when 19# the bootloader Kconfig option has been disabled. 20 21config FLASH_LOAD_OFFSET 22 default 0x1000 23 depends on BOARD_HAS_NRF5_BOOTLOADER && (MCUBOOT || !USE_DT_CODE_PARTITION) 24 25source "boards/common/usb/Kconfig.cdc_acm_serial.defconfig" 26 27endif # BOARD_NRF52840DONGLE 28