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

SD 8.0 SDK 8.0 OTA DFU

I've been looking into the OTA DFU dfu_init_template.c. It seems that dfu_init_postvalidate function can be used to perform a CRC check. However, in bootloader.c it seems the bootloader_app_is_valid function also performs a CRC check. Which one would be the redundant one? Am I missing something?

  • The one given in dfu_init_template.c is the redundant one, don't call that function. And i think dfu_image_validate is the function which is defined in dfu_dual_bank.c, which is internally called from dfu_transport_ble.c. and the one bootloader_app_is_valid defined in bootloader.c is used to verify that the application image which is present now in internal flash is valid, at the time of boot of nrf, if valid it switches to application.

Related