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

RTT Viewer adding extra terminals

I'm new to using the RTT Viewer. It was working fine (all morning). I've only been using the SEGGER_RTT_printf(0, "string %d \n",x); call to dump text and data to the viewer. I only use terminal 0.

RTT Viewer is now having problems. Terminal 0 output looks like:

Entering Main Program Loop
0H@L "‘ ˆ	€IDx	  Ð!€(Ñ!‰ ‰BØah‰xÉ Ð!IˆBØIðîü)€	à0(€#Ñ£œÐ#
€šCˆ˜„уЀ("Ñ ˆ!‰ˆCiF	x‰ 	
C €iFh(Ñ!ˆ (Ñ!‰ ‰BØah‰xÉ Ð!IˆBØIðîü)€	à0(€#Ñ£œÐ#
€šCˆ˜„уЀ ð±ø0Fð
ùÆ

The log file reports:

J-Link RTT Viewer V5.10m: Logging started.
LOG:  Global terminal added.
LOG:  Terminal 0 added.
LOG:  Terminal 1 added.
LOG:  Terminal 2 added.
LOG:  Terminal 15 added.
LOG:  RTT Viewer connected.
LOG:  Terminal 0 cleared.
LOG:  Terminal 0 cleared.
LOG:  Terminal 0 cleared.
LOG:  Terminal 0 cleared.
LOG:  Changed active terminal to -1
WARNING:  Could not add output to terminal -1
LOG:  Changed active terminal to 15
LOG:  Changed active terminal to 0
LOG:  Changed active terminal to -1
WARNING:  Could not add output to terminal -1

I'm only using terminal 0. Why are terminals 1,2, and 15 added? Where can I turn them off? Why is the Viewer trying to connect to terminal -1? Am I overflowing a buffer? What did I change to make it start having problems.

I've tried restarting the debugger, RTT Viewer, Keil, and even rebooted my machine. The Viewer is still having problems, so I'm guessing it's something I've done in my code.

I got a new PC on Friday, downloaded and reinstalled everything, so I should have the latest versions of everything.

I'm sure, it's something simple but not sure where to look? Thanks, Clint.

Related