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

S110 DFU failing during "Validate Firmware Image"

Hi all,

I am trying to implement DFU on my device with marginal success. Here are the steps that cause the issue:

  1. Using nRFgo Studio: "Erase all", "Program Softdevice" (8.0.0), "Program Bootloader" (Bootloader taken from dual_bank_ble_s110, only minorly tweaked to change LED pins)
  2. Using nRF Master Control Panel (on Windows): "Start Discovery", Select "DFU targ", "Connect", "Discover Services", "DFU" and select the appropriate application to load. This completes correctly and works fine.
  3. Using nRF Master Control Panel (on Windows): "Start Discovery", Select "DFU targ", "Connect", "Discover Services", "DFU" and select the appropriate application to load (the same as the previous application with only the BLE name changed to prove functionality). The OTA transfer gets to 100% and completes. However, upon this completing the following error message pops up "Error during firmware upload. Disconnected from device while waiting for response for VALIDATE FIRMWARE IMAGE". The new program is not loaded, I can tell because the advertised name does not change to the new value.

One extra point, if I program the same hex file a second time without changing anything then this works completely fine. It is only if I program a different hex file that the DFU fails.

Any help on how to fix this error would be much appreciated.

My setup:

  • Custom Board
  • nRF51822
  • S110 8.0.0
  • SDK 10

Attached below is the main.c for the updated bootloader.

bootloader_main.c

Parents Reply Children
No Data
Related