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

Buttonless DFU on nRF52832

I'm using nRF52832 + SDK17.0.0 + s132_7.0.1. I am testing buttonless DFU on the PCA10040 board based on this blog, The initial DFU (when there is no app) is successful:

  1. Build the secure_bootloader example with a private key.
  2. Build the ble_app_buttonless_dfu example.
  3. Create the DFU zip packet: "nrfutil pkg generate --hw-version 52 --application-version 0 --application nrf52832_xxaa.hex --sd-req 0xCB --key-file private.key app_dfu_package.zip"
  4. Upload the secure_booloader and softdevice using nRFgo Studio.
  5. Connect to DFUTARG with Android nRFConnect and DFU app_dfu_package.zip
  6. I see NORDIC_BUTTONLESS advertise and can connect to it fine

When I try to DFU from NORDIC_BUTTONLESS, nRFConnect disconnects from it and connects to DFUTARG which opens automatically in a new tab and just idles. The NORDIC_BUTTONLESS tab says "connecting", but never connects. If I go back to the DFUTARG tab and click DFU, it just idles in the Initializing state. The issue seems similar to this, but I do not see a "known issue" issue in Bjorn's link. Please advise on how to get the DFU to work once an app is already uploaded.

Related