Hi,
trying for a few days now to generate a DFU zip file from the blinky example on a PCA10056:
nrfutil pkg generate --hw-version 52 --sd-req 0x9A --application-version 5 --application blinky_pca10056.hex --key-file private.key app_dfu_package.zip
errors keep on turning up:
first tried to install nrfutil with python 3.9 but I cannot install a version of nrfutil beyond 5.2.0 and pc-ble-driver-py 0.11.4
downgraded python to 2.7 has no effect:
Traceback (most recent call last):
File "E:\Python27\Scripts\nrfutil-script.py", line 11, in <module>
load_entry_point('nrfutil==5.2.0', 'console_scripts', 'nrfutil')()
File "e:\python27\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "e:\python27\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "e:\python27\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "e:\python27\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "e:\python27\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "e:\python27\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "e:\python27\lib\site-packages\nordicsemi\__main__.py", line 867, in generate
package.generate_package(zipfile_path)
File "e:\python27\lib\site-packages\nordicsemi\dfu\package.py", line 407, in generate_package
Package.normalize_firmware_to_bin(self.work_dir, firmware_data[FirmwareKeys.FIRMWARE_FILENAME])
File "e:\python27\lib\site-packages\nordicsemi\dfu\package.py", line 606, in normalize_firmware_to_bin
temp.tobinfile(new_filepath)
File "e:\python27\lib\site-packages\nordicsemi\dfu\nrfhex.py", line 187, in tobinfile
size = self.size()
File "e:\python27\lib\site-packages\nordicsemi\dfu\nrfhex.py", line 152, in size
size = max_address - min_address + 1
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
It would be great if somebody could help me get this up and running.
Thanks