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

ota dfu bootloader+softdevice+app

Hello! I couldn't find somewhere on devzone, github how to update bootloader(bl), softdevice(sd), app together. The deal is I have some devices with prior version of sd and bl based on experimental buttonless app from sdk_13 (sd 3), now I want update to app based on buttonless example from sdk_14 (sd 5).

this instruction on github only tells that we need to do it with 2 connections.

in this blog I've found how to update only app + sd

Could someone explain that moment step by step. Thanks for helping in advance

Parents
  • Hi Stas,

    The reason I mentioned in the blog that you can update the softdevice and application is that, there will be still 2 phases, first updating the softdevice (and bootloader most likely), then after the softdevice+bootloader running, updating the application.

    It's just the DFU master make the process transparent as it's just one shot, but it's actually 2 connections under the hood.

    When you change the softdevice, and if it's major change (from SD v3 to SD v4 for example) you need to update the bootloader as well, because old bootloader won't work on new softdevice.

    @Nguyen Hoang Hoan: It's fine now to update major softdevice version as long as the MBR are the same. It was the limitation long ago where the location of the application ( size of softdevice) is hard coded in UICR.

Reply
  • Hi Stas,

    The reason I mentioned in the blog that you can update the softdevice and application is that, there will be still 2 phases, first updating the softdevice (and bootloader most likely), then after the softdevice+bootloader running, updating the application.

    It's just the DFU master make the process transparent as it's just one shot, but it's actually 2 connections under the hood.

    When you change the softdevice, and if it's major change (from SD v3 to SD v4 for example) you need to update the bootloader as well, because old bootloader won't work on new softdevice.

    @Nguyen Hoang Hoan: It's fine now to update major softdevice version as long as the MBR are the same. It was the limitation long ago where the location of the application ( size of softdevice) is hard coded in UICR.

Children
Related