Unbale compile and run http_update/application_update

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.

  • Hi, dant

    Will you please help me on it, how did you solve it? i have CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf but still showing following issue

    [00:00:09.312,408] <inf> download_client: Setting up TLS credentials, sec tag count 1
    [00:00:09.312,530] <inf> download_client: Connecting to 2606:50c0:8003::154
    [00:00:09.312,835] <err> download_client: Unable to connect, errno 114
    [00:00:09.819,335] <inf> download_client: Setting up TLS credentials, sec tag count 1
    [00:00:09.819,488] <inf> download_client: Connecting to 185.199.109.133
    [00:00:55.581,298] <inf> download_client: Downloaded 2048/211062 bytes (0%)
    [00:00:55.581,329] <err> dfu_target: No supported image type found
    [00:00:55.581,329] <err> fota_download: Unknown image type
    [00:00:55.581,359] <inf> download_client: Fragment refused, download stopped.

Related