I receive my nRf-9160-DK but decided to try to get the nRF52840-Dongle working first, Simply walk through installing nRFUtil, following the directions I ended up here: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_installing.html I have the latest python and pip installed python=3.9.1 pip=21.0.1
When I ran:
pip install nrfutil
D:\Downloads\nRF-52840>pip install nrfutil
Collecting nrfutil
Downloading nrfutil-5.2.0.tar.gz (850 kB)
|████████████████████████████████| 850 kB 1.6 MB/s
Collecting six~=1.9
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting pyserial~=3.0
Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting enum34~=1.0
Downloading enum34-1.1.10-py3-none-any.whl (11 kB)
Collecting click~=7.0
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting ecdsa~=0.13.0
Downloading ecdsa-0.13.3-py2.py3-none-any.whl (52 kB)
|████████████████████████████████| 52 kB 254 kB/s
Collecting behave~=1.0
Downloading behave-1.2.6-py2.py3-none-any.whl (136 kB)
|████████████████████████████████| 136 kB 1.6 MB/s
Collecting protobuf~=3.6
Downloading protobuf-3.14.0-py2.py3-none-any.whl (173 kB)
|████████████████████████████████| 173 kB 2.2 MB/s
Collecting pc_ble_driver_py~=0.11.4
Downloading pc_ble_driver_py-0.11.4.tar.gz (8.0 MB)
|████████████████████████████████| 8.0 MB 3.3 MB/s
Collecting tqdm~=4.25
Downloading tqdm-4.56.0-py2.py3-none-any.whl (72 kB)
|████████████████████████████████| 72 kB 361 kB/s
Collecting piccata~=1.0
Downloading piccata-1.0.1.tar.gz (16 kB)
Collecting pyspinel==1.0.0a3
Downloading pyspinel-1.0.0a3.tar.gz (49 kB)
|████████████████████████████████| 49 kB 769 kB/s
Collecting intelhex~=2.2
Downloading intelhex-2.3.0-py2.py3-none-any.whl (50 kB)
|████████████████████████████████| 50 kB 795 kB/s
Collecting pyyaml~=4.2b1
Downloading PyYAML-4.2b4.tar.gz (262 kB)
|████████████████████████████████| 262 kB 1.6 MB/s
Collecting crcmod~=1.7
Downloading crcmod-1.7.tar.gz (89 kB)
|████████████████████████████████| 89 kB 2.0 MB/s
Collecting libusb1~=1.7
Downloading libusb1-1.9.1-py3-none-win_amd64.whl (120 kB)
|████████████████████████████████| 120 kB 1.7 MB/s
Collecting parse>=1.8.2
Downloading parse-1.19.0.tar.gz (30 kB)
Collecting parse-type>=0.4.2
Downloading parse_type-0.5.2-py2.py3-none-any.whl (32 kB)
Collecting wrapt
Downloading wrapt-1.12.1.tar.gz (27 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 1.6 MB/s
Collecting ipaddress
Downloading ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Using legacy 'setup.py install' for nrfutil, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pc-ble-driver-py, since package 'wheel' is not installed.
Using legacy 'setup.py install' for piccata, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyspinel, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyyaml, since package 'wheel' is not installed.
Using legacy 'setup.py install' for crcmod, since package 'wheel' is not installed.
Using legacy 'setup.py install' for parse, since package 'wheel' is not installed.
Using legacy 'setup.py install' for wrapt, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: six, pyserial, enum34, click, ecdsa, parse, parse-type, behave, protobuf, wrapt, future, pc-ble-driver-py, tqdm, ipaddress, piccata, pyspinel, intelhex, pyyaml, crcmod, libusb1, nrfutil
Running setup.py install for parse ... done
Running setup.py install for wrapt ... done
Running setup.py install for future ... done
Running setup.py install for pc-ble-driver-py ... done
Running setup.py install for piccata ... done
Running setup.py install for pyspinel ... done
Running setup.py install for pyyaml ... done
Running setup.py install for crcmod ... done
Running setup.py install for nrfutil ... done
Successfully installed behave-1.2.6 click-7.1.2 crcmod-1.7 ecdsa-0.13.3 enum34-1.1.10 future-0.18.2 intelhex-2.3.0 ipaddress-1.0.23 libusb1-1.9.1 nrfutil-5.2.0 parse-1.19.0 parse-type-0.5.2 pc-ble-driver-py-0.11.4 piccata-1.0.1 protobuf-3.14.0 pyserial-3.5 pyspinel-1.0.0a3 pyyaml-4.2b4 six-1.15.0 tqdm-4.56.0 wrapt-1.12.1
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\users\kevin\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.
D:\Downloads\nRF-52840>c:\users\kevin\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip
Collecting pip
Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.2 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.0.1
D:\Downloads\nRF-52840>nrfutil --version
Traceback (most recent call last):
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python39\Scripts\nrfutil-script.py", line 33, in <module>
sys.exit(load_entry_point('nrfutil==5.2.0', 'console_scripts', 'nrfutil')())
File "C:\Users\Kevin\AppData\Local\Programs\Python\Python39\Scripts\nrfutil-script.py", line 25, in importlib_load_entry_point
return next(matches).load()
File "c:\users\kevin\appdata\local\programs\python\python39\lib\importlib\metadata.py", line 77, in load
module = import_module(match.group('module'))
File "c:\users\kevin\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "c:\users\kevin\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\__main__.py", line 53, in <module>
from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial
File "c:\users\kevin\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 52, in <module>
from nordicsemi.lister.device_lister import DeviceLister
File "c:\users\kevin\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\lister\device_lister.py", line 39, in <module>
from nordicsemi.lister.windows.lister_win32 import Win32Lister
File "c:\users\kevin\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\lister\windows\lister_win32.py", line 43, in <module>
from constants import DIGCF_PRESENT, DEVPKEY, DIGCF_DEVICEINTERFACE
ModuleNotFoundError: No module named 'constants'
D:\Downloads\nRF-52840>
I will move to my Ubuntu WSL2 box and try there and if that doesn't work I'll try my Ubuntu Nvidia server... FYI the information in the infocenter is out of date/version no mention that the nRF52840-Dongle is version 2 or version 1.2 just version 1