Hi there,
I intend to use pynrfjprog in development replacing another, older library. However, any call to the API which involves the nrfjprog DLL returns:
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pynrfjprog import LowLevel
>>> api = LowLevel.API("NRF52")
>>> api.version()
(10, 24, 2)
>>> api.dll_version()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python310\lib\site-packages\pynrfjprog\LowLevel.py", line 186, in dll_version
raise APIError(result, error_data=self.get_errors())
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -7 INVALID_SESSION.
This is on Win10. Python version and API version are in the snippet. Have you got any idea?
Thanks,
Norbert