Currently I have implemented Central using nrf52810, SDK 14.2 / Softdevice S132.
I want to know how to do OTA upgrade in Central.
Or I would like to get an example currently implemented.
Please. Thank you.
Currently I have implemented Central using nrf52810, SDK 14.2 / Softdevice S132.
I want to know how to do OTA upgrade in Central.
Or I would like to get an example currently implemented.
Please. Thank you.
Hi,
Are you looking to do (1) a OTA DFU for the central, i.e. update the code running on the central ?
Or , (2), are you looking to implement a DFU master/controller on your central device, that can be used to do a OTA DFU from your central to another peripheral device ?
For (1), you can just put the device into bootloader mode, the device will act as a BLE peripheral during the DFU, and you can update the application from e.g. a phone.
For (2), then unfortunately, we do not have a reference implementation for a OTA DFU controller running on a nRF51/nRF52. You may refer to the BLE transport documentation if you want to implement your own. Here are the message sequence charts: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_dfu_transport_ble.html?cp=5_1_3_5_2_2_3#lib_dfu_transport_msc
And you might find this unofficial serial DFU controller found in Chapter 6 in this blog-post helpful: https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader
Thank you.
I am going to proceed with (1).
If so, should one button be prepared to switch to bootloader?
And the memory is very small. What should you start with to proceed with the smallest boot loader?
This is my first time with bootloader.
Thank you.
I am going to proceed with (1).
If so, should one button be prepared to switch to bootloader?
And the memory is very small. What should you start with to proceed with the smallest boot loader?
This is my first time with bootloader.
mjr said:If so, should one button be prepared to switch to bootloader?
Yes, that is one option, there are also other ways that can be used to jump from the app to the bootloader. See this page
mjr said:And the memory is very small. What should you start with to proceed with the smallest boot loader?
The bootloader is already optimized to be as small as possible, and still being robust. And yes, you might run out of flash space when using the nRF52810 as BLE central... I would recommend looking into using a nRF52 SoC with more flash. See the list over nRF52 devices at this link.