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

What will happen if the bootloader DFU failed?

Dear friends,

We want to update the bootloader in our project. I have read the tutorial about the DFU process from here "Dual-bank and single-bank updates ". I have some questions about this DFU process, as below,

a) "After validation, the new SoftDevice and the new bootloader are copied to replace the existing firmware. " 

    When we copied the new bootloader to replace the  old one, the copy process breaked by power-off,  will the DFU process recover when reset ?

b) Who is responsible for the process of copying the bootloader and SoftDevice to replace the old one?

Thank you in advance.

Parents
  • Hi,

    Who is responsible for the process of copying the bootloader and SoftDevice to replace the old one?

    Bootloader and SoftDevice updates are always dual bank, and the copying itself is handled by the MBR, which itself is never updated.

    When we copied the new bootloader to replace the  old one, the copy process breaked by power-off,  will the DFU process recover when reset ?

    If a reset happens during copying, the MBR will see that the bootloader update was not completed and it will continue to copy it in place. This mechanism is safe in the sense that there is never a time where a reset will brick the device.

  • Thank you so much Einar.

    The mechanism is so clever.

    Could you tell me which tutotial has detailed introduce about this process "Bootloader and SoftDevice updates are always dual bank, and the copying itself is handled by the MBR"?

Reply Children
Related