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

How nrf bootloader finds which images is flashing currently...

Hi,

I want know how nrf51822 bootloader finds images type(means weather it is softdevice,bootloader,app) when we pass an image to bootloader for update. And also how bootloader comes to know weather an application is properly flash or not.

  • Hi Sudhan,

    you specify the image type when you create the firmware images (.zip) files , see this page if you're using our Legacy Bootloader( SDK v11.0.0 or older) or this page if you're using the Secure Bootloader( SDK v12.0.0 and later).

    Both bootloaders will verify that the firmware image has been received correctly, i.e. perform a CRC check of the image and compare it to the CRC calculated when the image file was created. After it has verified that the image is complete the bootloader will copy the image from (Bank 1) into the application region( Bank 0) and then compare Bank0 and Bank 1 to verify that the copy operation was successful. If not it will erase Bank 0 and perform the copy operation again.

    Best regards Bjørn

Related