FOTA download fails with zephyr.signed.bin (no app_update.bin generated) – nRF Connect SDK v3.1.1

I am currently working on a FOTA implementation I am using nRF9160 DK with nRF Connect SDK  v3.1.1 and the LwM2M client sample (/samples/cellular/lwm2m_client/). I am using LwM2M with the Leshan server over the CoAP protocol.

I am facing an issue: the app_update.bin file is no longer generated. I replaced it with zephyr.signed.bin in the update URL, but no FOTA update is triggered.

                                                     

Here are the logs I am getting

00:07:16.822,967] fota_download_util: Download url https://xxxxxx/zephyr.signed.bin
[00:07:16.823,028] fota_download_util: Download Path zephyr.signed.bin host https://leshan.xxxxxx
[00:07:16.826,782] downloader: Host lookup failed for hostname leshan.xxxxxx on IPv6 (err -22), attempting IPv4
[00:07:16.980,712] downloader: Setting up TLS credentials, sec tag count 1
[00:07:16.980,834] downloader: Connecting to 91.134.59.209
[00:07:18.089,569] downloader: Failed to connect, err -111
[00:07:18.089,599] fota_download: Downloader error event -111
[00:07:18.089,630] lwm2m_firmware: FOTA_DOWNLOAD_EVT_ERROR
[00:07:18.089,630] lwm2m_firmware: FOTA download failed, target 0
[00:07:18.092,742] app_lwm2m_client: FOTA failure 0 by status 4
                                                                                       

my configuration prj.conf    

#MCUboot
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_BUILD_OUTPUT_BIN=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y

#Flash support
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_STREAM_FLASH=y

#LwM2M firmware object
CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT=y

CONFIG_POSIX_API=y

# Allow FOTA downloads using download-client
CONFIG_DOWNLOADER=y
CONFIG_DOWNLOADER_STACK_SIZE=4096
CONFIG_FOTA_DOWNLOAD=y
CONFIG_DOWNLOADER_TRANSPORT_COAP=y
                                            

Parents
  • Hello, 

    I am facing an issue: the app_update.bin file is no longer generated

    What is the reason for why this is no longer generated? Have you changed anything in your build settings?

    Here are the logs I am getting

    Based on the provided logs, are you actually connected? 

    #define NRF_ECONNREFUSED 111 /**< Connection refused */
    Is the URL correct? I.e. Download url https://xxxxxx/zephyr.signed.bin
    Where did you define the URL? 
    Kind regards,
    Øyvind
Reply
  • Hello, 

    I am facing an issue: the app_update.bin file is no longer generated

    What is the reason for why this is no longer generated? Have you changed anything in your build settings?

    Here are the logs I am getting

    Based on the provided logs, are you actually connected? 

    #define NRF_ECONNREFUSED 111 /**< Connection refused */
    Is the URL correct? I.e. Download url https://xxxxxx/zephyr.signed.bin
    Where did you define the URL? 
    Kind regards,
    Øyvind
Children
No Data
Related