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

Nrfutil error when attempting Zigbee OTA DFU

I am following the Zigbee Device Upgrade OTA tutorial and have run into an issue flashing the server firmware using a j-link and Particle Xenon dev board.

Environment Details:

  • Windows 10
  • Python 3.8
  • nrfutil 6.0.1 installed using pip

After running the following:

nrfutil dfu zigbee -f 007B-0141-01020101-good_image.zigbee --jlink_snr 801005407 --channel 25

I get the below error message:

Traceback (most recent call last):
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 2729, in __init__
    serial_port = [d.port for d in serial_ports if d.serial_number == snr or
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\patri\AppData\Local\Programs\Python\Python38\Scripts\nrfutil-script.py", line 11, in <module>
    load_entry_point('nrfutil==6.0.1', 'console_scripts', 'nrfutil')()
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\__main__.py", line 1409, in zigbee
    of = OTAFlasher(fw = file, channel = channel, snr = jlink_snr)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\nordicsemi\zigbee\ota_flasher.py", line 71, in __init__
    super().__init__(serial_port, snr)
  File "c:\users\patri\appdata\local\programs\python\python38\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 2734, in __init__
    raise NordicSemiException("Board not found: {}".format(serial_port or snr))
pc_ble_driver_py.exceptions.NordicSemiException: Board not found: 801005407

I have verified that I am using the correct serial number for my j-link and have omitted the -snr parameter all together, which also errors. Any guidance is appreciated.

Related