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

SD + BL + APP dfu serial update failed

Hi, I try to update a nRF52832 with SDK 14.2.0 to SDK 15.3. I created a package with SD + BL + APP with the following command:

Fullscreen
1
2
3
4
5
nrfutil pkg generate --hw-version 52 --key-file private.key \
--application-version 2 --application application.hex \
--sd-req 0x9D,0x98,0xB7 --softdevice softdevice.hex --sd-id 0xB7 \
--bootloader bootloader.hex --bootloader-version 2 \
app_dfu_package.zip
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I'm using nrfutil (v5.1.0) to download the update via serial (nrfutil dfu serial -pkg ... ). Now the first part (SD + BL) succeeded, but somehow the second part, updating application, failed.
Nrfutil gives the following error:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nordicsemi/__main__.py", line 89, in do_main
do_serial(package = args.package[0], port = args.port[0], dfuStart = args.dfuStart)
File "/usr/lib/python2.7/site-packages/nordicsemi/__main__.py", line 69, in do_serial
dfu.dfu_send_images()
File "/usr/lib/python2.7/site-packages/nordicsemi/dfu/dfu.py", line 120, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "/usr/lib/python2.7/site-packages/nordicsemi/dfu/dfu.py", line 81, in _dfu_send_image
self.dfu_transport.open()
File "/usr/lib/python2.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 204, in open
self.__get_mtu()
File "/usr/lib/python2.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 306, in __get_mtu
self.mtu = struct.unpack('<H', bytearray(response))[0]
TypeError: 'NoneType' object is not iterable
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

After updating the Bootloader and Softdevice, will still the old bootloader handle the application update or is already the new bootloader started? I read some threads about a problem with the softdevice size, but this should be fixed in SDK v15.3, correct? I also tried to do a package with SD + BL + APP from SDK 14.2.0 and the error is the same...