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

SDK 12.1.0 DFU service fails to perform firmware upgrade

I performed below mentioned steps:

  1. Downloaded SDK 12.1.0
  2. Soft Device s130_nrf51_2.0.1_softdevice.hex
  3. Built secure boot-loader with new public key
  4. Built project ble_app_hrs for pca10028 on Keil compiler with DFU service added.
  5. Downloaded Soft device and Boot-loader hex files through nrfConnect Programmer
  6. Generated DFU .zip package with below command line arguments: nrfutil.exe pkg generate --application application.hex --application-version 0xFFFFFFFF --hw-version 51 --sd-req 0x87 --key-file private.key %file_name%.zip
  7. Able to download DFU .zip package through nrfConnect mobile App
  8. .
  9. Able to connect to device successfully with DFU Service and DFU button visible .
  10. On attempting to perform DFU with same .zip file, App is stuck at "Starting Boot-loader" message and does not proceed further
  11. DFU is not done successfully.

Please help me resolve this issue.

Thanks,

Rahul

Parents Reply
  • I built Buttonless DFU Template Application with the change as you suggested

    char_md.char_props.write = 1; inside rx_char_add() API (Please correct me if wrong)

    Below is the behavior observed:

    1. Application is broadcasting "Nordic_Template"
    2. On initiating DFU, application starts boot-loader.
    3. Connection is established with boot-loader
    4. Boot-loader is broadcasting "DFUTARG"
    5. On initiating DFU, App keeps messaging "Initializing..."
    6. Firmware upgrade does not happen
    7. In the background nrfConnect is still connecting with "Nordic_template"
    8. I restarted nrfConnect App.
    9. After that I was able to upgrade Application successfully.

    How do I fix this issue?

    Thanks,

    Rahul

Children
No Data
Related