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

DFU .dat file checksum verification

Hello,

We are using nRF52840 with SDK 15.2.0, a bootloader and the SoftDevice. We are able to perform a DFU by downloading the .bin and .dat files of the new firmware in Flash memory, to fill the DFU settings structure with the correct values, and after a reboot the bootloader updates our firmware as expected.

All of this works if the files are correctly downloaded, but if a data corruption happens we currently don't verify the checksum before the reboot, so the new firmware is not able to start.

This is the reason why we want to check the .bin file received, using the informations contained in the .dat file. We have computed the checksum of the .bin data, but we can't find informations about the data structure of the .dat file to be able to compare the checksums. Where is located the expected .bin checksum in the .dat file?

Thanks for your help!

Related