SLM XFOTA always fails

Hello,

we are trying to perform FOTA updates with default SLM application based on SDK 2.9.0,
but the application always aborts unsuccessfully.

Via AT interface the application responds:

    XFOTA.fota_stage= 0 -> Init
    XFOTA.fota_status= 1 -> Error
    XFOTA.fota_info= 2 -> Update image rejected

Via RTT-Logging there is an error "DNS lookup failed"

I have made some small overlays only to get the correct UART pins, but havent changed the application besides that.
For another nRF9160 application (not based on SLM / XFOTA commands) the FOTA update with this server is working fine.

I made a modem trace of one XFOTA attempt:

trace-2025-03-08T16-56-02.721Z.mtrace

Would appreciate any hint to get it running.

Thank you and best regards,
Bernhard

Parents
  • Hello,

    this is the full output:

    00> *** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
    00> *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
    00> [00:00:00.255,706] <inf> at_cmd_custom: Custom AT commands enabled with 41 entries.
    00> [00:00:00.261,901] <inf> fs_nvs: 2 Sectors of 4096 bytes
    00> [00:00:00.261,932] <inf> fs_nvs: alloc wra: 0, fe8
    00> [00:00:00.261,932] <inf> fs_nvs: data wra: 0, 0
    00> [00:00:00.493,988] <inf> nrf_modem_lib_trace: Trace thread ready
    00> [00:00:00.501,464] <inf> nrf_modem_lib_trace: Trace level override: 2
    00> [00:00:00.502,471] <inf> slm: lib_modem init: 0
    00> [00:00:00.503,021] <inf> mcuboot_util: Image index: 0, Swap type: none
    00> [00:00:00.503,051] <inf> slm: Serial LTE Modem
    00> [00:00:00.597,015] <inf> nrf_cloud_info: Device ID: 504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.602,447] <inf> nrf_cloud_info: IMEI:      350457794629749
    00> [00:00:00.695,312] <inf> nrf_cloud_info: UUID:      504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.701,08MQTT
    00> 
    00> [00:00:22.069,091] <inf> slm_ppp: Connection up. Starting PPP.
    00> [00:00:22.072,265] <inf> slm_ppp: PPP started.
    00> [00:01:08.481,658] <inf> download_client: Downloading: terminal-modem/delta_1.3.7_to_1.3.7-FOTA-TEST/modem.bin [0]
    00> [00:02:08.506,683] <err> download_client: DNS lookup failed http://embacher.pythonanywhere.com
    00> [00:02:08.506,744] <err> fota_download: Download client error

  • Does it help to set these in prj.conf?

    CONFIG_DNS_RESOLVER=y
    CONFIG_DNS_SERVER_IP_ADDRESSES=y
    CONFIG_DNS_SERVER1="8.8.8.8"

  • Hello,

    I have tried these configurations already but (although I cann see changes in the generated .config and .hex files) they are not functional at all. Not only is the result of the XFOTA command the same but also "AT+CGCONTRDP=0" still responds with the old DNS address in "DNS_prim_addr" and also in the pppd logfile there is still the original DNS configured.

    Best regards,
    Bernhard

  • Hi!

    Could you check if it works when you set CONFIG_SLM_PPP=n

  • Hello Sigurd,

    yes, with CONFIG_SLM_PPP=n it is working perfectly fine

    00> *** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
    00> *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
    00> [00:00:00.255,584] <inf> at_cmd_custom: Custom AT commands enabled with 38 entries.
    00> [00:00:00.261,566] <inf> fs_nvs: 2 Sectors of 4096 bytes
    00> [00:00:00.261,566] <inf> fs_nvs: alloc wra: 0, fe8
    00> [00:00:00.261,596] <inf> fs_nvs: data wra: 0, 0
    00> [00:00:00.498,992] <inf> slm: lib_modem init: 0
    00> [00:00:00.499,511] <inf> mcuboot_util: Image index: 0, Swap type: none
    00> [00:00:00.499,511] <inf> slm: Serial LTE Modem
    00> [00:00:00.592,895] <inf> nrf_cloud_info: Device ID: 504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.598,144] <inf> nrf_cloud_info: IMEI:      350457794629749
    00> [00:00:00.690,399] <inf> nrf_cloud_info: UUID:      504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.696,136] <inf> nrf_cloud_info: Modem FW:  mfw_nrf9160_1.3.7
    00> [00:00:00.696,166] <inf> nrf_cloud_info: Protocol:          MQTT
    00> [00:00:00.696,19HTTPS
    00> 
    00> [00:01:07.955,505] <inf> download_client: Downloading: terminal-modem/delta_1.3.7_to_1.3.7-FOTA-TEST/modem.bin [0]
    00> [00:01:08.443,908] <inf> download_client: Connecting to 35.173.69.207
    00> [00:01:09.249,908] <inf> download_client: Downloaded 2048/14248 bytes (14%)
    00> [00:01:09.250,274] <inf> dfu_target_modem_delta: Modem firmware version: e7a1c54a-b07c-4512-9c3e-8ecbbfe2641d
    00> [00:01:10.047,790] <inf> download_client: Downloaded 4096/14248 bytes (28%)
    00> [00:01:10.821,014] <inf> download_client: Downloaded 6144/14248 bytes (43%)
    00> [00:01:11.179,962] <inf> download_client: Downloaded 8192/14248 bytes (57%)
    00> [00:01:11.749,023] <inf> download_client: Downloaded 10240/14248 bytes (71%)
    00> [00:01:12.076,934] <inf> download_client: Downloaded 12288/14248 bytes (86%)
    00> [00:01:12.797,973] <inf> download_client: Downloaded 14248/14248 bytes (100%)
    00> [00:01:12.956,970] <inf> download_client: Download complete
    00> [00:01:13.082,550] <inf> dfu_target_modem_delta: Scheduling modem firmware upgrade at next boot

    Not sure what to do with this information, PPP is the only reason for this whole application so I am not able to deactivate it. Does it give any further hint on how to fix it?

    Thank you.

Reply
  • Hello Sigurd,

    yes, with CONFIG_SLM_PPP=n it is working perfectly fine

    00> *** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
    00> *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
    00> [00:00:00.255,584] <inf> at_cmd_custom: Custom AT commands enabled with 38 entries.
    00> [00:00:00.261,566] <inf> fs_nvs: 2 Sectors of 4096 bytes
    00> [00:00:00.261,566] <inf> fs_nvs: alloc wra: 0, fe8
    00> [00:00:00.261,596] <inf> fs_nvs: data wra: 0, 0
    00> [00:00:00.498,992] <inf> slm: lib_modem init: 0
    00> [00:00:00.499,511] <inf> mcuboot_util: Image index: 0, Swap type: none
    00> [00:00:00.499,511] <inf> slm: Serial LTE Modem
    00> [00:00:00.592,895] <inf> nrf_cloud_info: Device ID: 504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.598,144] <inf> nrf_cloud_info: IMEI:      350457794629749
    00> [00:00:00.690,399] <inf> nrf_cloud_info: UUID:      504b5839-3736-4e69-8022-202375aab4b4
    00> [00:00:00.696,136] <inf> nrf_cloud_info: Modem FW:  mfw_nrf9160_1.3.7
    00> [00:00:00.696,166] <inf> nrf_cloud_info: Protocol:          MQTT
    00> [00:00:00.696,19HTTPS
    00> 
    00> [00:01:07.955,505] <inf> download_client: Downloading: terminal-modem/delta_1.3.7_to_1.3.7-FOTA-TEST/modem.bin [0]
    00> [00:01:08.443,908] <inf> download_client: Connecting to 35.173.69.207
    00> [00:01:09.249,908] <inf> download_client: Downloaded 2048/14248 bytes (14%)
    00> [00:01:09.250,274] <inf> dfu_target_modem_delta: Modem firmware version: e7a1c54a-b07c-4512-9c3e-8ecbbfe2641d
    00> [00:01:10.047,790] <inf> download_client: Downloaded 4096/14248 bytes (28%)
    00> [00:01:10.821,014] <inf> download_client: Downloaded 6144/14248 bytes (43%)
    00> [00:01:11.179,962] <inf> download_client: Downloaded 8192/14248 bytes (57%)
    00> [00:01:11.749,023] <inf> download_client: Downloaded 10240/14248 bytes (71%)
    00> [00:01:12.076,934] <inf> download_client: Downloaded 12288/14248 bytes (86%)
    00> [00:01:12.797,973] <inf> download_client: Downloaded 14248/14248 bytes (100%)
    00> [00:01:12.956,970] <inf> download_client: Download complete
    00> [00:01:13.082,550] <inf> dfu_target_modem_delta: Scheduling modem firmware upgrade at next boot

    Not sure what to do with this information, PPP is the only reason for this whole application so I am not able to deactivate it. Does it give any further hint on how to fix it?

    Thank you.

Children
No Data
Related