Open multiplemonomials opened 1 year ago
Sorry, I do not know what that error code is. The logs are usually a better descriptor, so if you don't have logging enabled, then I would enable it:
import logging
logging.basicConfig(level=logging.DEBUG)
Hey i have the same problem. It seems to be a usage error. i can reproduce it by attaching a jlink to my mcu. have the rtt_read() running in a thread. then connect with the wrong device selected using jlink.connect. then connect with the right device and program that device (i used a script for programming called by subprocess). It gives the same exception traceback. So i fixed it by first disconnecting before connecting to a new device. I hope this helps someone
Hi, I've been using pylink on a couple boards and it's been working pretty well so far! However, today one of my boards got in a bad state where RTT can't be used with it. My code has:
and the stacktrace I get is:
It looks like the J-Link DLL is returning error code -11 but this library doesn't know how to interpret that? btw, it's worked fine with this same board and script in the past.