square / pylink

Python Library for device debugging/programming via J-Link
https://pylink.readthedocs.io/en/latest/
Other
334 stars 125 forks source link

Specify RTT Telnet port #161

Open dmolteni opened 1 year ago

dmolteni commented 1 year ago

Hi, I see after I open and connect a JLink object to my hardware a TCP socket is open on port 19021 for RTT. I was able to connect on that port with ncat and I can see the expected RTT messages...

I know 19021 is the default port for Telnet RTT. I just wondered if I can specify which port it is used as using JlLinkExe -RTTTelnetPort option.

Thanks

hkpeprah commented 1 year ago

You can use the ip argument as documented here, which takes an address and port; e.g. 127.0.0.1:8000 (<address>:<port>).

dmolteni commented 1 year ago

Sorry, I was unclear. I don't want be the client but the server.

I want to automatize a test that works as follows: I have my hardware on a remote PC that runs a python script that uses pylink to connect, flash a hex file and open the RTT telnet port. It works on the default port.

I want on same remote PC connect a second hardware and replicate the scenario using a not default RTT telnet port.

Thanks