I have been following the "Getting started with Nordic's Secure DFU bootloader, a step by step guide". I believe I may have compiled and loaded a DFU bootloader to the nRF52840 using nRF5_SDK_17.0.2 and pca10056_s140_ble (on an Adafruit nRF52840 Feather). Programmed with a Segger Jlink EDU.
C:\Users\mike\Downloads\nRF5_SDK_17.0.2_d674dde\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble\ses\Output\Release\Exe\secure_bootloader_ble_s140_pca10056.hex
I am now trying to create a DFU .zip packet, however I am getting the following error below. My understanding is that is a python error trying to compare an INT to a "NoneType" returned type, but I have no idea how to fix this... Any help/advice is appreciated.
My output:
03/12/2021 05:20 AM <DIR> .
03/12/2021 05:20 AM <DIR> ..
03/12/2021 05:15 AM 599,172 blinky_pca10056.elf
03/12/2021 05:15 AM 5,006 blinky_pca10056.hex
03/12/2021 05:15 AM 411,488 blinky_pca10056.map
03/12/2021 05:20 AM 11,933,953 nrfutil.exe
03/11/2021 04:10 PM 227 private.key
5 File(s) 12,949,846 bytes
2 Dir(s) 126,304,157,696 bytes free
C:\Users\mike\Downloads\nRF5_SDK_17.0.2_d674dde\nRF5_SDK_17.0.2_d674dde\examples\peripheral\blinky\pca10056\blank\ses\Output\Release\Exe>nrfutil pkg generate --hw-version 52 --application-version 1 --application blinky_pca10056.hex --sd-req 0x98 --key-file private.key app_dfu_package.zip
Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1537, in <module>
File "site-packages\click\core.py", line 764, in __call__
File "site-packages\click\core.py", line 717, in main
File "site-packages\click\core.py", line 1137, in invoke
File "site-packages\click\core.py", line 1137, in invoke
File "site-packages\click\core.py", line 956, in invoke
File "site-packages\click\core.py", line 555, in invoke
File "nordicsemi\__main__.py", line 881, in generate
File "nordicsemi\dfu\package.py", line 414, in generate_package
File "nordicsemi\dfu\package.py", line 615, in normalize_firmware_to_bin
File "nordicsemi\dfu\nrfhex.py", line 181, in tobinfile
File "nordicsemi\dfu\nrfhex.py", line 135, in minaddr
TypeError: '>' not supported between instances of 'NoneType' and 'int'
[23004] Failed to execute script __main__
If these help...
secure_bootloader_ble_s140_pca10056.hex4034.blinky_pca10056.hex1537.private.zip