This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connect to multiple Segger J-Link debuggers

Hello!

I need to interact with two J-Link debuggers, connected to the same PC at the same time. I would then read and write data to the devices connected to the debuggers.

To send/receive the data, I was thinking of using telnet, and here is where the problem arises. Both debuggers would be connected to port 19021, making it impossible to select which device gets what data. Is there a way to change the port to which a debugger connects to?

I am also open to suggestions on different methods to read/write data through the J-Link probes. Data transfer would be handled and triggered by a python script, not by the user.

Parents
  • Got it working! For the Telnet port to be visible, either JLinkExe or JLinkGDBServer have to be running. When starting JLinkExe there are two important command line options available - SelectEmuBySN and RTTTelnetport - allowing you to configure which Segger is mounted on which port.

    Using these option I was able to configure each Segger to show up on a different port and then connect to both at the same time.

    To manage the data on Python I used the standard telnetlib.

    Edit: telnetlib dicards packets whose content is 0x00 or "\021", so I had to use an edited version of this library.

Reply
  • Got it working! For the Telnet port to be visible, either JLinkExe or JLinkGDBServer have to be running. When starting JLinkExe there are two important command line options available - SelectEmuBySN and RTTTelnetport - allowing you to configure which Segger is mounted on which port.

    Using these option I was able to configure each Segger to show up on a different port and then connect to both at the same time.

    To manage the data on Python I used the standard telnetlib.

    Edit: telnetlib dicards packets whose content is 0x00 or "\021", so I had to use an edited version of this library.

Children
Related