How to create custom MCUBOOT for DFU

Hello!

I am creating a DFU application and want to customize the bootloader code.

I used this example: https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu

How can you include a custom MCUBOOT when doing this example?

Parents Reply
  • I agree. That would require the modification of MCUBoot.

    Please be aware that MCUBoot usually handle image swap (and do DFU recovery mode of you enable this feature) and it doesn't handle the receiving of the image. So what you can also do is to receive the image by your application (using SMP_SVR for example), decompress it and store it to the 2nd slot and then you can trigger the reset so that the MCUBoot can swap the image. 

Children
Related