The pynrfjprog software package can be installed using the Python installer program pip, or from the zip file provided by Nordic Semiconductor.
As the pynrfjprog package provides access to the nrfjprog DLL, it relies on the SEGGER J-Link ARM DLL being installed on the system. The required nrfjprog DLL is part of the installation and is included in the pynrfjprog directory. The SEGGER DLL is not included, but nrfjprog must be able to find it.
- If the SEGGER DLL is installed in the default location:
- Windows: C:\Program Files (x86)\SEGGER\JLink or C:\Program Files (x86)\SEGGER\JLink_Version
- Linux: /opt/SEGGER/JLink
- macOS: /Applications/SEGGER/JLink
- Windows: If the DLL was installed through the SEGGER installer and the location is stored in the Windows registry.
- Linux and macOS: If dlopen can find the DLL.
If the location of the SEGGER DLL cannot be determined automatically, it is possible to
pass the location of the DLL when instantiating the nrfjprog DLL object, i.e. when
initializing the API(..., jlink_arm_dll_path="/PATH", ...).