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

Unable to generate DFU.zip package.

Unable to generate DFU.zip package.
The command and error message is below:

#nrfutil pkg generate --hw-version 52 --application-version 1 --application blinky_pca10056.hex --sd-req 0X98 --key-file private.pem blinky.zip
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 867, in generate
package.generate_package(zipfile_path)
File "c:\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 "c:\python27\lib\site-packages\nordicsemi\dfu\package.py", line 606, in normalize_firmware_to_bin
temp.tobinfile(new_filepath)
File "c:\python27\lib\site-packages\nordicsemi\dfu\nrfhex.py", line 187, in tobinfile
size = self.size()
File "c:\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'

Tried the same on windows and Linux and also with 'pip install nrfutil' and using the 'nrfutil.exe' files.
Every time the error message is same. Please advice....

Parents Reply Children
No Data
Related