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

Python 64 bit issue with nrfjprog dll

Hello,

I have two version of Python 3.6 installed: 32 and 64 bit (Windows 10) Recently i installed nRF5x command line tools (9.7.2) and pynrfjprog 9.7.1

For Python 64 bit during creation of pynrjprog API.API("NRF52") object i got:

RuntimeError: Could not load the NRFJPROG DLL: '[WinError 193]

For Python 32 bit it works fine

Anyone has some idea what can help?

Parents
  • Hi! Did you install pynrfjprog through pip, or by downloading from github?

    Could you check the folder "Python 64bit install folder"\Lib\site-packages\pynrfjprog\win_64bit_dll and see if the required dlls are there? If you dwonloaded pynrfjprog manually, just check wherever you installed pynrfjprog, it should have the same folder structure.

    It should contain the following files:

    • nrfjprog.dll
    • highlevelnrfjprog.dll
    • jlinkarm_nrf51_nrfjprog.dll
    • jlinkarm_nrf52_nrfjprog.dll
    • jlinkarm_unknown_nrfjprog.dll
Reply
  • Hi! Did you install pynrfjprog through pip, or by downloading from github?

    Could you check the folder "Python 64bit install folder"\Lib\site-packages\pynrfjprog\win_64bit_dll and see if the required dlls are there? If you dwonloaded pynrfjprog manually, just check wherever you installed pynrfjprog, it should have the same folder structure.

    It should contain the following files:

    • nrfjprog.dll
    • highlevelnrfjprog.dll
    • jlinkarm_nrf51_nrfjprog.dll
    • jlinkarm_nrf52_nrfjprog.dll
    • jlinkarm_unknown_nrfjprog.dll
Children
Related