Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: west_commands: runners: fix support for JLink RTT #83832

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danieldegrasse
Copy link
Collaborator

JLink refuses new RTT telnet connections for a few moments after a socket closes. This causes an issue when using nc as the telnet viewer, since JLink would deny the connection. To resolve this, keep the "ping" socket we use to determine if the RTT viewer is active connected, and use that socket for RTT communication.

Another solution here would be to simply increase the delay before opening the nc connection- however I think this approach makes less sense, as it will increase latency when starting west rtt. Moreover, it isn't clear exactly how long JLink will deny new connections for, so the new delay would be arbitrary

JLink refuses new RTT telnet connections for a few moments after a socket
closes. This causes an issue when using `nc` as the telnet viewer, since
JLink would deny the connection. To resolve this, keep the "ping" socket
we use to determine if the RTT viewer is active connected, and use that
socket for RTT communication.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants