I would like to perform a OTA DFU in a nRF52840 DK using nrfutil. For that, I'm using the example that is in SDK/examples/dfu/secure_bootloader/pca10056_s140_ble in the target. Here are the commands I use to build the.zip and to perform the DFU:
nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52840_xxaa_s140.hex --sd-req 0xCA --key-file private.key app_dfu_package.zip nrfutil dfu ble -ic NRF52 -pkg app_dfu_package.zip -p COM28 -n "MyDevice" -f
However, when trying to perform the DFU, I receive this 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.
How could I solve this problem? I'm using SDK 17.0.2 (softdevice s140_nrf52_7.2.0) and Keil5 as IDE.
Any help would be appreciated.