This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

52840 USB DFU

When using nrfutil to upgrade the app for 52840dongle, you can see the data shown in the figure through the USB analyzer. The highlighted one does not quite understand the meaning. A total of 69 bytes.
I would like to ask the specific meaning, what should we send here if we make the tool for upgrading the application ourselves?
And why is there a suffix of 0xC0 at the end of each piece of data? Not in the official documentation.

Parents Reply
  • Then, as Turbo J said, the protocl is described here.

    What happens here is the transfer of the init packet. When this is done, and the CRC is calculated and it is executed, then the next step is to do the same with the firmware image, according to the message charts.

    So the line with the red circle is 08: Write, and the rest is payload for the init or application image (in this case init, if it is near the start), except the "C0", which is part of the SLIP library.

    I recommend that you read the DFU Protocol documentation and the Serial documentation, both the "Initialization", "Transfer of init packet" and "Tranfer of firmware image" sections.

Children
Related