OTA DFU, bootloader-only update gives "DFU File Error"

AlexB gravatar image

asked 2017-12-02 01:34:19 +0100

updated 2017-12-02 02:56:08 +0100

I am testing OTA DFU using NRF toolbox on Android. I have no problem updating my application using a zip file generated with nrfutil.

nrfutil.exe pkg generate --application nrf52832_xxaa.hex --key-file priv.pem --hw-version 52 --sd-req 0x9D --application-version 0x02 application.zip

  1. Android nRF Toolbox
  2. Select File-> Distribution Packet (ZIP)
  3. File is selected.
  4. Select Scope -> Application Only
  5. Select Device - BootloaderBLE
  6. Upload -> Works fine!

However I would like to be able to update my bootloader OTA. I generate a zip file in a similar way from the bootloader .hex file.

nrfutil.exe pkg generate --bootloader bootloader0_2.hex --key-file priv.pem --hw-version 52 --sd-req 0x9D --bootloader-version 0x0000001 bootloader0_2.zip

  1. Android nRF Toolbox
  2. Select File -> Distribution Packet (ZIP)
  3. File is selected
  4. Select Scope -> System Components only
  5. Select Device - Bootloader BLE
  6. Press upload -> "Upload Failed: DFU File Error" appears instantly.

Am I correct in assuming that the bootloader itself can be updated in this way via OTA DFU? Or do I need to update the bootloader by connecting to the application itself? I was under the impression that the bootloader could update itself.

edit retag flag offensive close delete report spam

2 answers

Sort by » oldest newest most voted
Bjørn Kvaale gravatar image

answered 2017-12-07 13:10:42 +0100

updated 2017-12-07 13:15:22 +0100

An application engineer at Nordic tried the same steps that you tried and got the same error. Seems there is a bug in the Android toolbox app that will be fixed soon. He suggests you try using the nrf connect app instead of the nrf toolbox app for updating the bootloader.

edit flag offensive delete publish link more


Hi Bjorn, thank you very much for your reply. I can confirm that the latest version (from this morning) of the NRF Connect app does not have the same bug and can successfully do all combinations of firmware update (BL, APP, SOFT) with my code.

AlexB ( 2017-12-08 03:09:53 +0100 )editconvert to answer

Great! Good to hear!

Bjørn Kvaale ( 2017-12-08 09:00:26 +0100 )editconvert to answer
AlexB gravatar image

answered 2017-12-04 01:31:50 +0100

Has anyone else managed to do a firmware -only update using the android App?

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower


Asked: 2017-12-02 01:34:19 +0100

Seen: 43 times

Last updated: des. 07