This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not able to perform DFU (FOTA) using nRF Connect Application or nRF ToolBox

Hi, I am trying to initiate Firmware Upgrade using the nRF Connect Mobile Application (also tried using nRF ToolBox).

As described in the below link - github.com/.../init packet handling

I created the ZIP File following the steps in the PDF file - How to create INIT File for nRF as mentioned in the link above. I have initiated upload using following steps -

  1. ZIP File created using nRF UTILITY
  2. .BIN and .DAT file

The error which I am getting is - After successfully starting Bootloader, the device is getting disconnected.

Please find the attached log of nRF LoggernRFLogger_Error.txt and .DAT Filefirmware.dat In the Log, you can see that after below byte is written to initiate DFU on characteristic, the connection is terminated. "D 14:38:28.776 [DFU] gatt.writeCharacteristic(00001531-1212-efde-1523-785feabcd123) A 14:38:32.142 [DFU] Jump to bootloader sent (Op Code = 1, Upload Mode = 4)"

Note: I am able to successfully perform DFU using Master Control Panel version 3.10 Device Information - Chip nRF52832, Softdevice support - S130 and S132. Mobile Used - Samsung A7 -2015, Android 6.0

Parents
  • Hi Monika,

    Have you used nrf.exe (nrfutil.exe) to generate the .zip file ? Or you simply generate the .dat and .bin file manually ?

    I would suggest to use the .zip file.

    Which SDK version did you use ?

    Could you check if the device manage to switch to DFU bootloader mode (advertising as DFUTarg) after you write to 0x0104 to the characteristic (00001531-1212-efde-1523-785feabcd123) ? From the log it seems the phone couldn't connect to the DFU target .

    D	14:38:35.098	[DFU] gatt = device.connectGatt(autoConnect = false)
    I	14:38:39.958	[DFU] Disconnected
    
Reply
  • Hi Monika,

    Have you used nrf.exe (nrfutil.exe) to generate the .zip file ? Or you simply generate the .dat and .bin file manually ?

    I would suggest to use the .zip file.

    Which SDK version did you use ?

    Could you check if the device manage to switch to DFU bootloader mode (advertising as DFUTarg) after you write to 0x0104 to the characteristic (00001531-1212-efde-1523-785feabcd123) ? From the log it seems the phone couldn't connect to the DFU target .

    D	14:38:35.098	[DFU] gatt = device.connectGatt(autoConnect = false)
    I	14:38:39.958	[DFU] Disconnected
    
Children
No Data
Related