JLinkGDBServer has delay before RTT output is sent over telnet

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

    • JLinkGDBServer has delay before RTT output is sent over telnet

      Hi,

      I'm trying to jlinkgdbserver + RTT output for rust. The rtt output is decoded using defmt to human readable output. It seems that whenever I launch a program or restart the MCU there is a delay of a couple of seconds before the RTT output is flushed to the RTT client. I've tried both JLinkRTTClient and just `nc localhost 19021`. After the initial delay, output seems to be sent reliably. I am running the program through GDB, and simple programs that just print - busy wait - loop have the same behavior, so I'm pretty sure it's not related to `wfi` or breakpoints. It is a bit limiting since I am trying use this in a unit-test setup, and the program will finish long before the RTT output arrives.

      Best regards, Gaute