We currently have a project that requires downloading firmware through 4G and transmitting it to NRF52832 through serial port for DFU. Do you have any relevant routine code for me to refer to?
We currently have a project that requires downloading firmware through 4G and transmitting it to NRF52832 through serial port for DFU. Do you have any relevant routine code for me to refer to?
Hi,
Which SDK version are you using?
What kind of device is doing the 4G and download of the firmware? The official tool from Nordic to perform serial DFU is nrfutil, which is a python-based command line tool.
You can find C-based Serial DFU Master code example developed by my colleague in this tutorial.
Best regards,
Jørgen
I am using SDK 15.2, and I will take a look at this tutorial now. Thanks.
After configuration, it still cannot be compiled, and it seems that some files are missing from this project?
I have placed it in nRF5_ SDK_ 15.2.0_ 9412b96 examples dfu secure_ Under the bootloader path, but there are still some missing files.
Sorry,path is nRF5SDK15209412b96\nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_bootloader
The tutorial says:
The following example made for SDK v14.2 but it should work on SDK v15.x with minor modification.
Did you try SDK 14.2.0?
The project directory should also be placed inside examples\dfu, not inside the secure_bootloader directory.
Ok, I'll try SDK 14.2.
Thanks.
Thanks.
Hi,
Currently, I am able to obtain data from the serial port in BootLoader, but I would like to know what format of data should I transfer if I transfer data through the serial port to NRF52832 for DFU? Is it an upgrade package? Because using BLE DFU requires a ZIP upgrade package.
Hi,
The format and storage location is described in the Documentation for SPI DFU Master in the tutorial: DFU_SPI_readme.docx
The DFU protocol is also documented in our SDK documentation.
Best regards,
Jørgen