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

SDK12 DFU service not found

I am developing software for a custom hardware based on NRF52. Previously I was tasked on updating the old NRF51 based software (used on older version of the device) for NRF52 using SDK11. Once that was done my next task was updating the software for SDK12. The software is otherwise working fine but I am having problems with DFU. I tried creating a zip of the application and flashed the combined softdevice/bootloader from SDK12 examples folder (dfu/ble_dfu_send_hex) to the device. The device shows as DfuTest on the mobile DFU app but when I try to upload the zip all I get is "DFU service not found". I also tried compiling the secure DFU bootloader example and using that instead but the result is the same.

Do I need to also have DFU support in the application for that to work ? Currently the application has some kind of DFU functionality from the earlier SDK 11 implementation but I'm guessing that wont work. Any examples to study so that I can implement the functionality ?

Parents
  • Ok, I added a write property and did a rebuild. Still problems. For some reason writing 1 to the characteristic while the application is running causes it to lock up. The last log messages I'm getting are:

    :INFO:Erasing old settings at: 0x0007a000 :INFO:Erasing: 0x0007a000, num: 1 :INFO:Writing 0x00000057 words :INFO:Writing settings... Debug: BLE: default - error? :INFO:Obtained settings, enter dfu is 1 Debug: BLE: disconnected! Debug: Starting advertising...

    After that - nothing. Lines starting with Debug are BLE event handler messages using my customised logging routine. For some reason I could not get the logging macros to work so I did a custom implementation.

Reply
  • Ok, I added a write property and did a rebuild. Still problems. For some reason writing 1 to the characteristic while the application is running causes it to lock up. The last log messages I'm getting are:

    :INFO:Erasing old settings at: 0x0007a000 :INFO:Erasing: 0x0007a000, num: 1 :INFO:Writing 0x00000057 words :INFO:Writing settings... Debug: BLE: default - error? :INFO:Obtained settings, enter dfu is 1 Debug: BLE: disconnected! Debug: Starting advertising...

    After that - nothing. Lines starting with Debug are BLE event handler messages using my customised logging routine. For some reason I could not get the logging macros to work so I did a custom implementation.

Children
No Data
Related