nrf52840 Secure DFU Bootloader over Serial DFU in bin format

Hi,

I want to update nrf52840 application DFU over serial UART link from other MCU. We have go through secure bootloader example in SDK ("SDK\examples\dfu\secure_bootloader\pca10040_uart") It is very useful, but as it required nrfutil as DFU controller as well as extraction of firmware package on MCU not feasible.
we want to implement DFU with same example secure bootloader without many changes to update application firmware from other MCU. Other MCU can store row bin data.
I want to know how can i perform DFU using bin files and some metadata bytes without using nrfutil and implement same DFU process and protocol as nrfutil on other MCU.
does Nordic provide DFU controller library and DFU process steps to secure update new application firmware? any suggestions are welcome.

SDK used 17.02
softdevice s140

Thanks.

  • Hi,

    The .zip file generated by nrfutil contains the relevant binary files, so you can extract the zip file first and then transfer the data to your MCU. The actual image is in the .bin file, and the init packet is in the .dat file.

    Nordic does not provide any DFU master implementation that is suitable for an MCU, so that is up to you. You can refer to the DFU protocol documentation as well as some of the implementations we do provide (like in nrfutil) for reference. You can also refer to some implementation done by third parties, like this one.

Related