DFU Init Command Format

We are developing an application that will download an application update image over cellular HTTP. We want to skip the DFU transport altogether and directly write the image we receive over cellular to flash bank1 and then trigger the update activation.  It looks like we need to spoof the DFU transport portions that receive and execute the Init command, so the bootloader can perform its normal validations and then activate the new image.

How can we spoof the Init command?  Is the DFU Init command format documented?  I know the nrfutils create an update zip package that includes a *.dat file that (I think) is the Init packet, which gets executed to create the Init Command that is used to perform the FW update.  We are using the older SDK 17.

https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_validation.html?cp=9_1_3_5_1_1_0#lib_bootloader_dfu_init

Thanks!

Ron

Related