nRF9160: HTTP application update — nRF Connect SDK 2.1.2 documentation (nordicsemi.com)
Hello, unbale to the above sample.
Case 1:
CONFIG_DOWNLOAD_HOST="www.host.com"
CONFIG_DOWNLOAD_FILE_V2="static/20230424/nrf9160_app.bin"
CONFIG_DOWNLOAD_FILE_V1="static/20230424/nrf9160_app.bin"
CONFIG_APPLICATION_VERSION=1
# FOTA library
CONFIG_FOTA_DOWNLOAD=y
# DFU Target
CONFIG_DFU_TARGET=y
CONFIG_REBOOT=y
CONFIG_DFU_TARGET_MCUBOOT=y
# Application Upgrade support
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
Compilation fails with following warning.
warning: FLASH_MAP (defined at subsys/storage/flash_map/Kconfig:10) has direct dependencies FLASH_HAS_DRIVER_ENABLED with value n, but is currently being y-selected by the following symbols:
- MCUBOOT_IMG_MANAGER (defined at subsys/dfu/Kconfig:25), with value y, direct dependencies <choice> (value: y), and select condition <choice> (value: y)
warning: DFU_TARGET_STREAM (defined at C:/ncs/v2.1.2/nrf\subsys\dfu\dfu_target/Kconfig:22) has direct dependencies STREAM_FLASH_ERASE && STREAM_FLASH && DFU_TARGET with value n, but is currently being y-selected by the following symbols:
- DFU_TARGET_MCUBOOT (defined at C:/ncs/v2.1.2/nrf\subsys\dfu\dfu_target/Kconfig:12), with value y, direct dependencies IMG_MANAGER && BOOTLOADER_MCUBOOT && DFU_TARGET (value: y), and select condition IMG_MANAGER && BOOTLOADER_MCUBOOT && DFU_TARGET (value: y)
Case 2:
prj.conf
# Sample configuration
CONFIG_DOWNLOAD_HOST="www.host.com"
CONFIG_DOWNLOAD_FILE_V2="static/20230424/nrf9160_app.bin"
CONFIG_DOWNLOAD_FILE_V1="static/20230424/nrf9160_app.bin"
CONFIG_APPLICATION_VERSION=1
# FOTA library
CONFIG_FOTA_DOWNLOAD=y
# DFU Target
CONFIG_DFU_TARGET=y
CONFIG_REBOOT=y
# Application Upgrade support
#CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_LOG=y
Error in the log
00> [00:03:40.232,360] <inf> download_client: Downloaded 2048/183976 bytes (1%)
00> [00:03:40.232,391] <err> dfu_target: No supported image type found
00> [00:03:40.232,391] <err> dfu_target: Unknown image type
00> [00:03:40.232,421] <err> fota_download: dfu_target_init error -134
We are using a custom board with nRF9160 soc.
Please help.