How to use a second RTT channel?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • How to use a second RTT channel?

    Hi!

    I am investigating a remote setup using RTT. The setup is to be automated. Here is the scenario:

    1. A manager node will contain a test script, connecting to a remote Raspberry Pi (RPi) node, which is connected via USB to an ARM development kit (DK). The test script sends commands to a CLI on the DK, and the DK replies with printouts. The CLI uses RTT channel 0.

    2. On the RPi, I start JLinkExe like this: JLink.exe -AutoConnect 1 -device XXXX -SelectEmuBySN YYYY -RTTTelnetPort 19122 -if SWD -speed 4000 , where XXXX and YYYY are parameters suitable for the DK.

    3. As the RTT telnet port is only accessible from localhost (and not any remote host (for security reasons, I guess)), I set up a SSH connection from the manager node to the RPi. This SSH connection adds a tunnel from a port on the manager to port 19122 on the RPi. This way, I can start a Telnet session on the manager, and be connected to the CLI on the DK. All this works well.



    Questions:
    Now, I would like to add a separate printout channel for logging, on RTT channel 1. Is there a way to get the output of that channel to the manager? I am aware of (but have not tested) RTT Logger. The RTT Logger seems unsuitable, as it is a command like application, making it difficult to automate.

    regards,
    Elm
  • Hi,

    Currently it is not possible to route any other RTT Channel than channel 0 to the Telnet connection.
    We plan to improve this in the future and provide an option to use other channels as well.

    Best regards
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi, and thanks for your answer. I would appreciate this possibility.

    Just fantasizing a little:

    As the -RTTTelnetPort parameter is already used for only one of the channels (channnel 0), one could envision other methods. One example is to add to the semantics of the same parameter, e.g. -RTTTelnetPort 19023,3 (where "'3" is optional) meaning using port 19023 for channel 3. The program could allow several -RTTTelnetPort instances on the command line, for several channels open. I guess that would be backwards compatible, albeit a little more complex to implement.

    Another method would be to add a new command line parameters for channels other than 0, for example -RTTTelnetPortChannel 19023,3.

    Did I say that I would appreciate this possibility?

    regards,
    Elm.

    P.S.
    Thanks for very quick answers on this forum.