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