I try, DFU by USB-SERIAL on NRF52840-DK.
I installed SoftDevice S140 V6.1.1 and open_bootloader/pca10056_usb (SDK15.3)
Python2.7.16/nrfutil for windows was installed.
My DFU package build by "nrfutil pkg generate --hw-version 52 --sd-req 0xB6 --application _build/nrf52module.hex --application-version 1 app_dfu_package.zip"
When I run following command,
"nrfutil dfu usb-serial -pkg app_dfu_package.zip -p COM34"
error occured.
----------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\Scripts\nrfutil-script.py", line 11, in <module>
load_entry_point('nrfutil==5.2.0', 'console_scripts', 'nrfutil')()
File "c:\python27\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\python27\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\python27\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\python27\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\python27\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\python27\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\python27\lib\site-packages\nordicsemi\__main__.py", line 1001, in usb_serial
timeout)
File "c:\python27\lib\site-packages\nordicsemi\__main__.py", line 956, in do_serial
dfu.dfu_send_images()
File "c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py", line 129, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "c:\python27\lib\site-packages\nordicsemi\dfu\dfu.py", line 90, in _dfu_send_image
self.dfu_transport.open()
File "c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 216, in open
self.__set_prn()
File "c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 360, in __set_prn
self.__get_response(DfuTransportSerial.OP_CODE['SetPRN'])
File "c:\python27\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 487, in __get_response
if resp[0] != DfuTransportSerial.OP_CODE['Response']:
IndexError: list index out of range
----------------------------------------------------------------------------------------------------------------------------------------
What happened?