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

Cannot update zip file after enabling dfu

Hi,

I am using sdk_17 and nrf52810. I have build a bootloader from the examples folder(examples/dfu/secure_bootloader/pca10040e_S112_ble) for my device. After flashing, the device enters into dfu mode. When I select the required zip package from my phone for updating, it simple just gets disconnected. I am using the proper private and public keys for creating the files.

Parents
  • Hi,

    Can you share the log from nRF Connect on mobile (or other), which could indicate the issue? It is sometimes also very useful to see the RTT log from the bootloader, but to get that you need to flash a debug bootloader project (example bootloader project with the suffix "_debug").

  • The logs from my mobile app indicates->

    [DFU]Remote DFU error:

    EXTENDED ERROR

    [DFU]Details: SD version failure

    (code =7)

    I have also checked the version of the softdevice(S112) its 0xc4.

    "nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_template_pca10040e_s112.hex --sd-req 0xc4 --key-file private.key app_dfu_package.zip"

    This is the command that I have used to generate the zip file.

    And I have also tried this nrf52832 EVK board as well, but the result remains the same.

  • Hi,

    This means that the SoftDevice ID you require (0xC4) is not the ID of the SoftDevice that is currently flashed to the board. You either use/add the ID of the currently used SoftDevice id to the --sd-req option (if compatible), or include the SoftDevice in the ugpradei mage as well. (Note that if you need to update to a new SoftDevice you also need to update the bootloader, as it has dependencies on the SoftDevice.)

Reply
  • Hi,

    This means that the SoftDevice ID you require (0xC4) is not the ID of the SoftDevice that is currently flashed to the board. You either use/add the ID of the currently used SoftDevice id to the --sd-req option (if compatible), or include the SoftDevice in the ugpradei mage as well. (Note that if you need to update to a new SoftDevice you also need to update the bootloader, as it has dependencies on the SoftDevice.)

Children
Related