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

SDfile, Bootloadera and Application Files updating using Serial DFU bootloader

Hi All,

We are using NRF52832 in our project. We have implemented the c code to perform nrfutil operations.

We are following below steps to do it.

  1. Erase all files. Upload SD file and Bootloader files from the nrfGo studio.
  2. Combine SDfile, Bootloadera and Application bin files into one file with same order.
  3. Put NRF52832 into DFU mode. 
  4. Send combined file data from st micro controller to NRF52832 using UART.
  5. Once all data sent. Reset the NRF52832 and checked the known FW version.
  6. All are working fine.

But if i try to update file one more time, NRF52832 is accepting SD file and boot loader init file after that its not accepting the data.

To avoid this issue we need to erase all data from the NRF52832 and upload the data.

How to update files without erasing previous data?

Is our procedure is wrong?

Is there any order for files update? like which file should go first and others.

Thanks and regards,

Basavanagouda.

Parents
  • Hi Basavanagouda,

    It seems like you may need to update the FW version before you do the DFU update a second time (explained in this link):

    "Firmware version: If the image contains a bootloader, the image is accepted if the new firmware version is greater than (>) the existing version of the bootloader. If the image contains an application, the image is accepted if the new firmware version is greater than or equal to (>=) the existing version of the application. If the image contains a SoftDevice and no SoftDevice is already present, the fw_version is checked against the existing application's version to determine whether the update can overwrite it."

    This documentation assumes you are using sdk v15.2, but you can select the version you are using here:

    Also, this blog post could be helpful.

    Kind Regards,

    Bjørn Kvaale

Reply
  • Hi Basavanagouda,

    It seems like you may need to update the FW version before you do the DFU update a second time (explained in this link):

    "Firmware version: If the image contains a bootloader, the image is accepted if the new firmware version is greater than (>) the existing version of the bootloader. If the image contains an application, the image is accepted if the new firmware version is greater than or equal to (>=) the existing version of the application. If the image contains a SoftDevice and no SoftDevice is already present, the fw_version is checked against the existing application's version to determine whether the update can overwrite it."

    This documentation assumes you are using sdk v15.2, but you can select the version you are using here:

    Also, this blog post could be helpful.

    Kind Regards,

    Bjørn Kvaale

Children
No Data
Related