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

DFU with OTA

Hi,

anyone help me.

I am facing the issue during DFU with OTA. the steps are listed which had I done,

here trying to update softdevice.

1. Erase all.

2.flashed softdevice.

3.complied and programmed the bootloader which has included with SDK example(dfu_ble_dual_bank_s110).

4. the target device start to advertise as  "DfuTarg" with LED status.

5. Open nRF connect on my phone and scanner then found the target device and connected successfully.

6. click the DFU button on the nRF connect mobile app. it displays 4 options. 

7. I chose distributed back. and try to upload the zip file. app showing "starting DFU" and then disconnected

zip files preparation:

1. got the softdevice from the example folder.

2. using nrfutil.exe, the file has made as "xxx.zip". the zip file consists of xxx.bin file, xxx.dat, manifest file.

3. hut here I did n't use any private key like yyy.pem.

note:-

bootloader example: dfu_ble_dual_bank_s110, version 7.2.0.

SDK version 7.2.0

softdevice: s110, version 7.1.0

target device: custom board, nrf51822 QFAA, 16kb ram, 256kb flash memory.

Keil v5.

please correct where I have made a mistake and guide me on what I have to do exactly. 

 

Parents Reply Children
  •  I can generate the zip file using nrfutil.exe 5.2.0. I that image I have mentioned the exact command which was I used to generate the package.

    I was tried to update the firmware of softdevice got from the example of bootloader testing (dfu_test_softdevice_w_bootloader_b.hex).

    opened the nRF tools App and choose the DFU option. 

    select the device and select the zip file(chose as system component only) which is going to update. then click the upload button.

    the target device has connected and App shows uploading and starting DFU then disconnected.

    returns upload failed: OPERATION FAILED. (GATT ERROR)

  • Satheeshkumar said:
    5.2.0

     Try using 0.5.2 instead:

    nrfutil_0_5_2.zip

    nrfutil dfu genpkg --application APPLICATION.hex app.zip

  • Thank u very much for your quick response. I tried with that nrfutil_0_5_2 still I am getting the same error. I need one clarification, this DFU process can support with 16 KB RAM, 256KB flash?

    I can perform the same DFU with NRF51822QFAC 32KB 256KB specification. is there any possibility to do with NRF51822QFAA 16KB 256KB specification. Kindly help me.

  • Tried with NRF51822QFAA 16KB 256KB specification:

    I used the above settings and tried to build but I got an error like,

    Error: L6406E: No space in execution regions with.ANY selector matching arm_startup_nrf51.o(STACK).
    Error: L6407E: Sections of aggregate size 0x800 bytes could not fit into.ANY selector(s).

    and I searched in the forum and found one solution for this,

    in that forum, they suggested reducing the stack size from 2048 to 255 in amr_startup_nrf51.s file.

    Now the build was done successfully. I can flash into the target device. started advertising and connected with nRconnect chosen DFU option loaded zip file into the app. then the app started to upload the file to the target device. but failed. 

    please guide me if had done any mistake.

  • Satheeshkumar said:
    I used the above settings and tried to build but I got an error like,

     Was this the application or the bootloader project?

     

    Satheeshkumar said:
    then the app started to upload the file to the target device. but failed. 

     Did you get any error code in the app ? Anything in the log that might identify the issue?

Related