I want to use serial dfu. But I don't know what should I do in the application to enter the DFU mode safely similar to the OTA DFU.
I want to use serial dfu. But I don't know what should I do in the application to enter the DFU mode safely similar to the OTA DFU.
Hi Sourabh,
I was assuming you were talking about the new DFU bootloader from SDK v12 where we haven't got support for Serial bootloader.
For the DFU bootloader in SDK v11, you can use our bootloader out of the box. To switch to bootloader, you can follow the same code we used in the example ble_app_hrs_with_dfu in particular it's the function bootloader_start() in dfu_app_handler.c Ignore the code for sd_ble_gatts_sys_attr_get() and dfu_app_peer_data_set().
Hi Sourabh,
I was assuming you were talking about the new DFU bootloader from SDK v12 where we haven't got support for Serial bootloader.
For the DFU bootloader in SDK v11, you can use our bootloader out of the box. To switch to bootloader, you can follow the same code we used in the example ble_app_hrs_with_dfu in particular it's the function bootloader_start() in dfu_app_handler.c Ignore the code for sd_ble_gatts_sys_attr_get() and dfu_app_peer_data_set().