Hi, I have a project where an STM32 controller has the updated binary file for nRF1822 in flash and it will upgrade the firmware on nRF1822 with the serial implementation of Nordic provided dual bank DFU. May I know where I can get example code that has to be implemented on the STM32 to interact with nRF1822 in DFU mode and upgrade it
Unfortunatly, we do not have any examples for the "host" MCU for serial DFU since this the MCU used will vary from design to design.
I suggest that you take a look at our python implementation of the serial DFU in our nrfutil tool, found here on Github.
You can find a description of the serial packet format and in which order they should be sent on this Infocenter page.
Hi Bjorn, do you know if there is any example for the host MCU using BLE?
@andresovela (Andy): Do you mean updating the firmware of the Host MCU over BLE?
No, I mean the exact same situation as described by Uzair but using BLE instead of serial. When a host MCU has the binary and wants to flash another MCU by means of the DFU. Both MCUs are NRF51822.
@andresovela (Andy): No, we do not have any example where a nRF5x device updates the firmware of another nRF5x device. I suggest that you take a look at the BLE DFU Service Profile and Service Documentation, found here. It explains which charactersitics that should be written to and when they should be written to in order to initiate the DFU process. You could also take a look at the discussion in this question.