[SOLVED] RTT and JLinkRemoteServer

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

  • [SOLVED] RTT and JLinkRemoteServer

    Hi,
    I need to flash and use RTT on device connected on RaspberryPi.
    I think to use this architecture:
    • On RaspberryPi:
      • run JLinkRemoteSever to connect over USB to the device
      • run socat to forward RTT from telnet connection to another server
    • On server:
      • run my own log collector (that accept TCP connection)
      • when needed run JLinkExe to flash the firmware
    I know ARM software has not support but my first attempt is on my PC (x86) and also there I have some problem.

    I can make work the part of flashing but I'm not able to make RTT forwarding.
    I tried with JLinkRTTClient on server, I see only a couple of line that indicate I'm connected to Remote server but I didn't see any device output.
    Than I also tried raw TCP connection with ncat and socat, and the result is the same.

    But if I use the JLinkRTTViewer I can see the output on terminal 0.

    What I'm doing wrong?
    Is it possible receive RTT output directly from JLinkRemoteServer?

    Thanks for any help.
    Davide
  • Hi Davide,
    Thank you for your inquiry.

    There seems to be a misunderstanding of how the J-Link Remote Server works.
    The J-Link Remote Server establishes a direct connection between the working PC connected to the Remote Server session and the J-Link.

    In your case this means:
    The J-Link Remote Server establishes a connection between
    - a J-Link Process on your working PC and
    - the J-Link connected via USB to the slave PC / RaspPi the J-Link Remote Server is running on.
    This means, it does not connect to your target device or start RTT.
    This has to be handled by the process on your working PC that is connected to the J-Link Remote Server session.

    To activate RTT, you would have to:
    1) Connect to the J-Link Remote Server session from your working PC.
    2) Start RTT on your working PC (e.g. via connecting to the J-Link TELNET port on your working PC not on the RaspPi).

    Does this answer your question?

    Best regards,
    Fabian
    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.