Hi,
I'm trying to run the test code in https://github.com/NordicSemiconductor/pynrfjprog:
from pynrfjprog import LowLevel
with LowLevel.API('NRF52') as api:
api.enum_emu_snr()
api.connect_to_emu_without_snr()
api.erase_all()
api.write_u32(ADDRESS, DATA, IS_FLASH)
api.disconnect_from_emu()
I'm getting the following error:
/home/guy/.local/lib/python3.8/site-packages/pynrfjprog/LowLevel.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
with LowLevel.API('NRF52') as api:
File "/home/guy/.local/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 116, in __init__
raise APIError(result, error_data=self.get_errors())
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -7 INVALID_SESSION.
Python 3.8.10
nrfjprog version: 10.15.1 external
JLinkARM.dll version: 7.58c
Name: pynrfjprog
Version: 10.15.1
Summary: A simple Python interface for the nrfjprog functionality
Home-page: http://www.nordicsemi.com/
Author: Nordic Semiconductor ASA
Author-email: [email protected]
License: Nordic 5-clause License
Location: /home/guy/.local/lib/python3.8/site-packages
Requires: future
Required-by:
Installed using pip
What can be using that?
It looks as if the DLL has invalid format and script can't read it but objdump will list all internal symbols.