<?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>nrf52832 SDK12 RTT Logger Module Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17359/nrf52832-sdk12-rtt-logger-module-issue</link><description>I&amp;#39;m having an issue getting strings to print properly using the RTT and the logging module. Literal strings seem to work fine. I.E. the following works perfectly: 
 NRF_LOG_INFO(&amp;quot;Test\r\n&amp;quot;);
 
 I want to use non-literal strings. For example, the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Nov 2016 16:52:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17359/nrf52832-sdk12-rtt-logger-module-issue" /><item><title>RE: nrf52832 SDK12 RTT Logger Module Issue</title><link>https://devzone.nordicsemi.com/thread/66744?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 16:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38015136-5dc7-48d3-9f7a-fdbe9f8c8cb1</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Looking at the source of SEGGER_RTT_printf.c, it seems to do what I want (it looks like it would print strings using the %s specifier properly) I&amp;#39;m not sure how to make it use SEGGER_RTT_printf though.&lt;/p&gt;
&lt;p&gt;This tutorial: &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; suggests that this should work without MicroLib (it says: uncheck &amp;quot;Use MicroLIB&amp;quot; and add SEGGER_RTT_printf.c).&lt;/p&gt;
&lt;p&gt;I seem to be able to compile and run the project without even including SEGGER_RTT_printf.c with no difference at all. Placing breakpoints show that SEGGER_RTT_printf doesn&amp;#39;t get called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 SDK12 RTT Logger Module Issue</title><link>https://devzone.nordicsemi.com/thread/66743?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 11:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b504d3-8196-452a-b31b-8d7c119d9982</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It does not work if MicroLib is disabled, so I guess this is a limitation of the standard library which is used when MicroLib is not used. No, I don&amp;#39;t think SEGGER_RTT_printf.c is being used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 SDK12 RTT Logger Module Issue</title><link>https://devzone.nordicsemi.com/thread/66745?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 00:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a0f0d7-516b-4c90-98f7-d5f72794c13e</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Thank you for your response and sorry for the delay in my reply.&lt;/p&gt;
&lt;p&gt;I notice that MicroLib is enabled in ble_app_hrs. Does it still work for you if MicroLib is disabled? I get the same result as you if MicroLib is enabled (it works) but it stops working when I disable it.&lt;/p&gt;
&lt;p&gt;This suggests to me that the SEGGER_RTT_printf.c isnt being used. I cannot use MicroLib in my project for various reasons (and I was under the impression I wouldnt need to use it)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 SDK12 RTT Logger Module Issue</title><link>https://devzone.nordicsemi.com/thread/66742?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2016 12:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fefc20aa-9a1e-4369-974d-4b5bb3c3c8bf</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It seems to be working here. I just took ble_app_hrs, set NRF_LOG_ENABLED 1 and NRF_LOG_BACKEND_SERIAL_USES_RTT 1 and put&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;char string_on_stack[] = &amp;quot;stack&amp;quot;;
//nrf_log_push() copies the string into the logger buffer and returns address from the logger buffer
NRF_LOG_INFO(&amp;quot;%s&amp;quot;,nrf_log_push(string_on_stack));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in main(). Then I get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; 0&amp;gt; SDH:INFO:sd_ble_enable: RAM START at 0x20002128
 0&amp;gt; APP:INFO:Heart Rate Sensor Start!
 0&amp;gt; APP:INFO:Fast Adverstising
 0&amp;gt; APP:INFO:stack
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>