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

DFU with softdevice only not working

On NRF52840 DK, I don't have a softdevice installed. I want to do DFU with s140 softdevice only update. But it gives the following error:

raise NordicSemiException('Extended Error 0x{:02X}: {}'.format(resp[3], data))
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.

I created the package with this command, nrfutil pkg generate --hw-version 52 --sd-req 0x00 --sd-id 0xA9 --key-file priv.pem  --softdevice softdevice_s140.hex s140.zip  (I tried without sd-id option, but it doesn't work either) But for the sake of trying, if I flash s140 softdevice with nrfjprog, then I update softdevice with nrfutil pkg generate --hw-version 52 --sd-req "0xA9" --key-file priv.pem  --softdevice softdevice_s140.hex s140.zip It works. I want to know 1. whether a previous softdevice has to be present if I want to do a softdevice update? 2. What's the right command of nrfutil to generate a softdevice only package?

Related