<?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>RTT waste more ram than you thought</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13223/rtt-waste-more-ram-than-you-thought</link><description>In the function log_rtt_init(), the SEGGER_RTT_ConfigUpBuffer()/SEGGER_RTT_ConfigDownBuffer() can&amp;#39;t config the customize buffer if the parameter buffer index equal to 0 ( BUT LOG_TERMINAL_NORMAL is 0 ). So the static buf_normal_up[]/buf_down[] are useless</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Apr 2016 19:39:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13223/rtt-waste-more-ram-than-you-thought" /><item><title>RE: RTT waste more ram than you thought</title><link>https://devzone.nordicsemi.com/thread/50413?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 19:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1482fb61-f3af-45ab-83d1-f02a84c448f8</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;Yes, I can patch the files provided by Segger/Nordic, but I think this is more like a bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT waste more ram than you thought</title><link>https://devzone.nordicsemi.com/thread/50412?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 06:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba14b3bd-9773-480c-9f84-6135b811189f</guid><dc:creator>Tien</dc:creator><description>&lt;p&gt;Did you remove the buf_normal_up[] and buf_down[] ?
and try this config:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEGGER_RTT_MAX_NUM_UP_BUFFERS             (1)     // Max. number of up-buffers (T-&amp;gt;H) available on this target    (Default: 2)
#define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS           (1)     // Max. number of down-buffers (H-&amp;gt;T) available on this target  (Default: 2)

#define BUFFER_SIZE_UP                            (64)   // Size of the buffer for terminal output of target, up to host (Default: 1k)
#define BUFFER_SIZE_DOWN                          (1)    // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT waste more ram than you thought</title><link>https://devzone.nordicsemi.com/thread/50411?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 06:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ccdd742-9c78-4e16-8c99-754959fbb626</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I also use RTT in my application, running on an nRF51 chip with 16k RAM. I use RTT only to send trace messages to a PC client (&lt;code&gt;SEGGER_RTT_BUFFER_UP&lt;/code&gt;) and I do not need the &lt;code&gt;SEGGER_RTT_BUFFER_DOWN&lt;/code&gt; buffer at all.&lt;/p&gt;
&lt;p&gt;In the latest RTT implementation given by Segger (RTT version &lt;code&gt;5.12b&lt;/code&gt;), the buffer are declared as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct {
  char                    acID[16];                                 // Initialized to &amp;quot;SEGGER RTT&amp;quot;
  int                     MaxNumUpBuffers;                          // Initialized to SEGGER_RTT_MAX_NUM_UP_BUFFERS (type. 2)
  int                     MaxNumDownBuffers;                        // Initialized to SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (type. 2)
  SEGGER_RTT_BUFFER_UP    aUp[SEGGER_RTT_MAX_NUM_UP_BUFFERS];       // Up buffers, transferring information up from target via debug probe to host
  SEGGER_RTT_BUFFER_DOWN  aDown[SEGGER_RTT_MAX_NUM_DOWN_BUFFERS];   // Down buffers, transferring information down from host via debug probe to target
} SEGGER_RTT_CB;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Depending on the compiler, it is not allowed to declare an array with a length of &amp;#39;0&amp;#39;.
Is there a Nordic implementation of RTT which allow to disable the down buffer ? I have a limited amount of RAM and I do not like to lost bytes for a buffer I do no use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>