This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRFJPROG DLL: -254 INTERNAL_ERROR when using Python script based on pynrfjprog

I was trying to connect to NRF52-DK using this Python script:

https://github.com/thomasstenersen/pyrtt-viewer/blob/master/pyrtt-viewer

It runs fine on some machines, but on others it fails with this output from Python: 

Traceback (most recent call last):
File "pyrtt-viewer-mt-original.py", line 188, in <module>
main()
File "pyrtt-viewer-mt-original.py", line 174, in main
nrf = connect(args.segger_id)
File "pyrtt-viewer-mt-original.py", line 64, in connect
nrf.open()
File "/home/ihor/.local/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 177, in open
raise APIError(result, error_data=self.get_errors())
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -254 INTERNAL_ERROR.

It runs fine on Ubuntu 20.04, Windows 7, Windows 10.

It fails on two other Ubuntu 20.04, and two macOS.

All systems have installed Segger JLink software pack, Nordic Command Line Tools, and pynrfjprog.

Question: why does it fail and how to make it work?

Related