<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7382/segger-rtt---how-to-increase-maximun-line-count</link><description>I want to use Seggers RTT for data logging.. but after 199lines the Viewer starts to overwrite the old lines.. so that only the most recent 199 lines are displayed.. 
 Are there by the way any other tools I can use instead of the standard one?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2015 14:46:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7382/segger-rtt---how-to-increase-maximun-line-count" /><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26239?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 14:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2b00ca7-688d-42ce-b074-0aee6f1644d2</guid><dc:creator>L&amp;#252;ck</dc:creator><description>&lt;p&gt;Thanks for your fast answers!
I use SEGGER_RTT_printf(0, &amp;quot;%c\t%u\r\n&amp;quot;, &amp;lt;uint8_t&amp;gt;, &amp;lt;uint32_t&amp;gt;); directly in the ISR which will be triggered 4x every 1ms. Sure, this is quite often but only few data are printed hence RTT should do the job within a few microseconds [us]. Seems that the printf overhead is quite large...&lt;/p&gt;
&lt;p&gt;To solve this issue I will implement a large FIFO storing the received data during the test and after the test is stopped printing the whole FIFO content which is not time critical anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26238?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 12:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:306cf12f-11c7-456d-a5d9-f60b66466d60</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Glad and sad to hear as well. I used SEGGER_RTT_printf(0, &amp;quot;\r\n%d;%d;%d;%d;%d;%d;%d;%d&amp;quot;,d...) to output my measurements every 250ms. This worked fine and the SoC could perform as usual. Sadly I can&amp;#39;t anymore on this topic. Good Luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26237?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 12:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c904653c-05a2-4430-bc20-c8d81f7aca92</guid><dc:creator>L&amp;#252;ck</dc:creator><description>&lt;p&gt;Thanks for the answer. The hint to start the RTT viewer and then use any Telnet client works fine to logg the data (I use putty: Host Name = localhost, Port = 19021).
However RTT does not be as fast as claimed on the SEGGER webpage. With UART printf I still get the better performance! Actually I have no idea why RTT performs bad...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26235?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 17:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc0e89e-851a-4afa-9420-1cb1054e9665</guid><dc:creator>L&amp;#252;ck</dc:creator><description>&lt;p&gt;@ muhkuhns: I cannot see any other answer or comment in this thread giving a solution.
The solution I described works but the performance is even worse than with UART printf.
I have up to four values to be logged every 1ms. With UART printf I miss approx. 55% and with RTT approx. 70%.
Do you have experienced any performance issues like this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26234?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 16:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcec98ac-eedb-44e0-9c03-e600ad3e8eb2</guid><dc:creator>L&amp;#252;ck</dc:creator><description>&lt;p&gt;All right, I found a possibility:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;download the Segger &lt;a href="https://www.segger.com/jlink-software.html"&gt;Software and Documentation pack&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;extract and install it (do not replace existing DLLs as it may conflict with an existing tool chain)&lt;/li&gt;
&lt;li&gt;in the install folder (e.g. &amp;quot;C:\Program Files (x86)\SEGGER\JLink_V502f&amp;quot;) find the &lt;em&gt;JLinkRTTLogger.exe&lt;/em&gt; application and start it&lt;/li&gt;
&lt;li&gt;enter the device name which is the Segger serial number of the device (maybe also any other name works?)&lt;/li&gt;
&lt;li&gt;follow the instructions and enter the required parameters&lt;/li&gt;
&lt;li&gt;select the device from the popup but do not update the device firmware (if asked)&lt;/li&gt;
&lt;li&gt;in device selection prompt (if shown) press &amp;quot;Yes&amp;quot; and select your target device (in my case nRF51822_xxAA)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now the logger started to log...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26233?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee448f4-a18f-43a7-9f47-f939079cf134</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;see my addes answer.
btw: You should have posted this as the comment it is, and not as an answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26236?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ceaa2a-f09c-4029-8fca-34e77fe97545</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Sorry I didn&amp;#39;t answered this one by my own till now. As a work around I used telnet.&lt;/p&gt;
&lt;p&gt;As far as I remember you don&amp;#39;t have to do anything else one the rtt side after you have started the viewer as usual. Just install/enable telnet on your windows computer and you are good to.&lt;/p&gt;
&lt;p&gt;Here is the script I wrote (.vbs) to automatically connect and log everything to a .txt file named with date+time:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set sh=WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)
sh.run &amp;quot;Telnet&amp;quot;
WScript.Sleep 100
D = Date
T = Time
Timestamp = Year(D) &amp;amp; Right(&amp;quot;0&amp;quot; &amp;amp; Month(D), 2) &amp;amp; Right(&amp;quot;0&amp;quot; &amp;amp; Day(D), 2) &amp;amp; _
    &amp;quot;_&amp;quot; &amp;amp; _
    Right(&amp;quot;0&amp;quot; &amp;amp; Hour(T), 2) &amp;amp; Right(&amp;quot;0&amp;quot; &amp;amp; Minute(T), 2) &amp;amp; Right(&amp;quot;0&amp;quot; &amp;amp; Second(T), 2)
sh.SendKeys &amp;quot;set logfile C:\Users\yourname\Dropbox\Messungen\&amp;quot; &amp;amp; Timestamp &amp;amp; &amp;quot;_Messreihe.txt&amp;quot;&amp;amp;vbcr
WScript.Sleep 500
sh.SendKeys &amp;quot;set logging&amp;quot;&amp;amp;vbcr
WScript.Sleep 500
sh.SendKeys &amp;quot;open localhost 19021&amp;quot;&amp;amp;vbcr
Wscript.Sleep 1000
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26232?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b47f51-5351-4972-8663-fd34a83ece1f</guid><dc:creator>L&amp;#252;ck</dc:creator><description>&lt;p&gt;Hi muhkuhns.
I have the same problem that I want to use RTT for data logging as UART printf() is too slow.
In addition I need to log data from three devices connected to the PC at the same time.
Therefore I would be verry interessted in your solution for that issue.
Did you find a solution so far?
Or does someone else know how to log data with RTT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26231?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 08:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff892be-6999-4cfc-9cae-9392dbd692f4</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;I registered at their forum but still waiting for any confirmation mail or similiar to be sent... can&amp;#39;t post there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger RTT - How to increase maximun line count?</title><link>https://devzone.nordicsemi.com/thread/26230?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 15:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f4f100-ad8e-490f-acd0-c9d7b93bf3e0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Have you tried asking on Segger&amp;#39;s forums? They provide the viewer after all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>