1# BL654 USB adapter board configuration 2 3# Copyright (c) 2021-2022 Laird Connectivity 4# SPDX-License-Identifier: Apache-2.0 5 6if BOARD_BL654_USB 7 8# To let the nRF5 bootloader load an application, the application 9# must be linked after Nordic MBR, that is factory-programmed on the board. 10 11# Nordic nRF5 bootloader exists outside of the partitions specified in the 12# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application 13# correctly, after Nordic MBR, and limit the maximum size to not protude into 14# the bootloader at the end of flash. 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# so no override or limit is necessary. 19 20config FLASH_LOAD_OFFSET 21 default 0x1000 22 depends on !USE_DT_CODE_PARTITION 23 24config FLASH_LOAD_SIZE 25 default 0xdf000 26 depends on !USE_DT_CODE_PARTITION 27 28source "boards/common/usb/Kconfig.cdc_acm_serial.defconfig" 29 30endif # BOARD_BL654_USB 31