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

regarding to buttonless DFU

Hi,

I have tried buttonless DFU in SDK 12, for which I have a few questions

(1) Is bootloader not needed if I use Buttonless DFU Template Application? However, SoftDevice is still required.

(2) I have to combine my own application with the Buttonless DFU Template Application. Is it correct?

For the above two questions, see answers below.

However, I failed at the last step. Please see my test steps and the problem in the attached word document.DFU trial SDK 12.docx

Parents
  • after reading through the online document, I have come to know that

    (1) bootloader is needed

    (2) I can add Buttonless Secure DFU Service to my application to achieve buttonless DFU.

    Following this link, I managed to let the device reboot from "Nordic_Template" app to bootloader mode "DfuTarg".

    The tick is that we need to add

    char_md.char_props.write = 1;

    in ble_dfu.c () as discussed in here

  • D 17:46:50.052 [DFU] gatt.setCharacteristicNotification(8e400001-f315-4f60-9fb8-838830daea50, true) D 17:46:50.052 [DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00) I 17:46:50.204 [DFU] Data written to descr.8e400001-f315-4f60-9fb8-838830daea50, value (0x): 01-00 V 17:46:50.204 [DFU] Notifications enabled for 8e400001-f315-4f60-9fb8-838830daea50 A 17:46:50.204 [DFU] Notifications enabled D 17:46:50.204 [DFU] wait(1000) V 17:46:51.156 [DFU] Writing to characteristic 8e400001-f315-4f60-9fb8-838830daea50 D 17:46:51.156 [DFU] gatt.writeCharacteristic(8e400001-f315-4f60-9fb8-838830daea50)

    the uploading just stuck there, never got finished

Reply
  • D 17:46:50.052 [DFU] gatt.setCharacteristicNotification(8e400001-f315-4f60-9fb8-838830daea50, true) D 17:46:50.052 [DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00) I 17:46:50.204 [DFU] Data written to descr.8e400001-f315-4f60-9fb8-838830daea50, value (0x): 01-00 V 17:46:50.204 [DFU] Notifications enabled for 8e400001-f315-4f60-9fb8-838830daea50 A 17:46:50.204 [DFU] Notifications enabled D 17:46:50.204 [DFU] wait(1000) V 17:46:51.156 [DFU] Writing to characteristic 8e400001-f315-4f60-9fb8-838830daea50 D 17:46:51.156 [DFU] gatt.writeCharacteristic(8e400001-f315-4f60-9fb8-838830daea50)

    the uploading just stuck there, never got finished

Children
No Data
Related