I am so happy the latest command line tools finally support the Apple M1 chip natively. Thanks again!
Now I was updating our production scripts to python3 and the latest pynrfjprog too, but it kept failing,
So I checked if the examples work, and the LowLevel ones failed very early on:
Python 3.9.7 (default, Oct 12 2021, 22:38:23)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pynrfjprog import LowLevel
>>> api = LowLevel.API('NRF52')
>>> api.open()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/lib/python3.9/site-packages/pynrfjprog/LowLevel.py", line 185, in open
raise APIError(result, error_data=self.get_errors())
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -254 INTERNAL_ERROR.
However HighLevel seems to work well:
from pynrfjprog import HighLevel
api = HighLevel.API('NRF52')
snrs = api.get_connected_probes()
print(snrs)
[81480416]
Any ideas?
By the way, your documentation here needs to be updated: infocenter
The fourth line fails:
from pynrfjprog import HighLevel api = HighLevel.API(‘NRF52’) api.open() api.connect_to_emu_without_snr() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'API' object has no attribute 'connect_to_emu_without_snr'
I assume that was supposed to be a LowLevel.API() example?