OTA Update Softdevice + Bootloader error

I try to update/replace the code in a nRF52 board from 3rd party (Fanstel).  They only able to provide the private key which I can create the zip file but not able to give info what version of Softdevice loaded.

I am using the nRF5_SDK_17.0.2_d674dde for 

- secure_bootloader_ble_s132_pca10040.hex

- s132_nrf52_7.2.0_softdevice.hex

Using a batch file to create the zip file

set BOOT=secure_bootloader_ble_s132_pca10040
set SOFT=s132_nrf52_7.2.0_softdevice
set KEY=private.pem
set ZIP=Secure_Bootloader

nrfutil pkg generate --hw-version 52 --sd-req 0x101 --sd-id 0x101 --key-file %KEY% --bootloader-version 1 --bootloader %BOOT%.hex --softdevice %SOFT%.hex %ZIP%.zip

when I use the nRF52-DK board to perform OTA

nrfutil dfu ble -ic NRF52 -pkg Secure_Bootloader.zip -p COM15 -n "DfuTarg" -f

I get the following error : 

pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.

 

Parents
  • If you update the softdevice to a different version, you need to update the bootloader as well. The reason behind this behavior is that if you end up with a bootloader that doesn't use the correct softdevice version, then you have bricked the device (in case you don't have a debugger, which end products typically doesn't have). 

    So you need to either do an app-only update, or you can do a SD+BL update, or a combination, APP-SD-BL.

    dilbert168 said:

    Do you think a old version Bootloader can be updated ??

    If it is the standard bootloader from the SDK, then I think it should be fine. 

Reply
  • If you update the softdevice to a different version, you need to update the bootloader as well. The reason behind this behavior is that if you end up with a bootloader that doesn't use the correct softdevice version, then you have bricked the device (in case you don't have a debugger, which end products typically doesn't have). 

    So you need to either do an app-only update, or you can do a SD+BL update, or a combination, APP-SD-BL.

    dilbert168 said:

    Do you think a old version Bootloader can be updated ??

    If it is the standard bootloader from the SDK, then I think it should be fine. 

Children
Related