thomasstenersen / pyrtt-viewer

A simple RTT client using Python 3 and pynrfjprog
MIT License
21 stars 5 forks source link

RTT-Session not closed after terminate the script (CTRL-Z in terminal) #8

Open trunifom opened 3 years ago

trunifom commented 3 years ago

Session not closed correctly. After termiante / stop the script in the terminal it is not possible to open RTT-viewer again.

The following error occurs: /pyrtt-viewer$ python3 pyrtt-viewer Connected devices: 0: 801011524

Select a device number or quit (q): 0 Traceback (most recent call last): File "pyrtt-viewer", line 185, in main() File "pyrtt-viewer", line 171, in main nrf = connect(args.segger_id) File "pyrtt-viewer", line 73, in connect nrf.connect_to_emu_with_snr(snr, jlink_khz) File "/home/user/.local/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 243, in connect_to_emu_with_snr raise APIError(result) pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -102 JLINKARM_DLL_ERROR.