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

pynrfjprog can not get_connected_probes on WIN7

Hi,

I had done a python script using pynrfjprog, and use pyinstaller already created an .exe,and this .exe works well on Windows 10 system PC.

But when I run this .exe file on the Win7 PC,the .exe also can run,but it can't  get_connected_probes when using 

api.get_connected_probes().
I had try pynrfjprog v10.12.0 and pynrfjprog v10.11.0 ,they all not works well on WIN7.
Could you please give me some suggestions?Thanks!
Parents Reply Children
  • Hi Kenneth,

    Yes,VC runtime was already installed,and I try 3 different WIN7 computer.

    There was no error massage,the script can run witout error,the issue is that when using get_connected_probes() ,will not get the jlink snr which was connected with my computer.

    api = HighLevel.API()
    api.open()
    devices = api.get_connected_probes()

  • Can you try to make a log:

    import logging
    logging.basicConfig(level=logging.DEBUG)
    api = HighLevel.API()
    api.open()
    devices = api.get_connected_probes()

    This should output logging to console, you may replace basicConfig() with the following to output to a log file instead:

    logging.basicConfig(level=logging.DEBUG, filename="log.log")
  • Hi,

    The two log files,please found attachment. 

    I found that when abnormal, the dll open failing.

    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] dll_open
    DEBUG:pynrfjprog.HighLevel:[Info    ] [HighLevel ] default_jlink_path parameter is NULL, latest JLINKARM DLL will be looked for and used.
    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] get_connected_probes
    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] dll_close
    DEBUG:pynrfjprog.HighLevel:[Info    ] [HighLevel ] closing and freeing sub dlls.

    normal_log.log

    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] dll_open
    DEBUG:pynrfjprog.HighLevel:[Info    ] [HighLevel ] default_jlink_path parameter is NULL, latest JLINKARM DLL will be looked for and used.
    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] get_connected_probes
    DEBUG:pynrfjprog.HighLevel:[Debug   ] [HighLevel ] dll_close
    DEBUG:pynrfjprog.HighLevel:[Info    ] [HighLevel ] closing and freeing sub dlls.
    

  • I don't have any suggestion based on this. I can see Microsoft have ended their support also for Windows 7, so I suggest to upgrade to Windows 10:
    https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-january-14-2020-b75d4580-2cc7-895a-2c9c-1466d9a53962 

Related