<?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 logging: no output in SDK 11?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14038/rtt-logging-no-output-in-sdk-11</link><description>Hi there, 
 I&amp;#39;m in the middle of migrating an application from SDK 10 to SDK 11. In the SDK 10 version, I had RTT logging working just fine. I&amp;#39;m developing on a Mac so I had to start Segger&amp;#39;s GDB server in order to get the RTT client to run. I have three</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Apr 2017 15:10:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14038/rtt-logging-no-output-in-sdk-11" /><item><title>RE: RTT logging: no output in SDK 11?</title><link>https://devzone.nordicsemi.com/thread/53683?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 15:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77945d44-2128-47a2-908d-950eb16bc875</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Coming back to my own question ages later, another thing that caught me out was that the default logging level in the sdk_config.h I was using was 3 (info) and I had been testing logging with NRF_LOG_DEBUG() (level 4). Maybe this&amp;#39;ll help someone else in the same situation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logging: no output in SDK 11?</title><link>https://devzone.nordicsemi.com/thread/53682?ContentTypeID=1</link><pubDate>Fri, 27 May 2016 19:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97bbd984-f631-4418-bc37-80c12099e4d1</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Thank you so much! This has been killing me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logging: no output in SDK 11?</title><link>https://devzone.nordicsemi.com/thread/53681?ContentTypeID=1</link><pubDate>Fri, 27 May 2016 19:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f102df-b388-4285-a37f-2bb2a681bee5</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;I am also having trouble with RTT porting an existing app to v11.  In my case it seems I&amp;#39;m running into the &amp;quot;In some cases J-Link cannot locate the RTT buffer in the known RAM region.&amp;quot; issue from &lt;a href="https://www.segger.com/jlink-rtt.html"&gt;www.segger.com/jlink-rtt.html&lt;/a&gt;.  I ran&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;exec SetRTTAddr 20002c40
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;from JLinkExe, where 20002c40 was the location of _SEGGER_RTT in the _build/nrf51822_xxaa_s130.map file, and RTT started working.  The FAQ linked says that&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;eval &amp;quot;monitor exec SetRTTAddr %p&amp;quot;, &amp;amp;_SEGGER_RTT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;should work from gdb but I haven&amp;#39;t tried it.  Trying to get RTT working so that I can avoid gdb in the first place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logging: no output in SDK 11?</title><link>https://devzone.nordicsemi.com/thread/53680?ContentTypeID=1</link><pubDate>Fri, 27 May 2016 12:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea58b8b-8632-406c-b792-094044ea1a38</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try with a clean copy of one of the standard BLE examples from the SDK and add the LOG macros in the main loop:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main()
{
     // Initialize.
     NRF_LOG_INIT();
     ....

     // Start execution.
     ...... 

// Enter main loop.
for (;;)
{
    NRF_LOG(&amp;quot;print something&amp;quot;);
} 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And make sure to add -DNRF_LOG_USES_RTT=1 compiler flags before building. This worked on my OSX setup using J-link V.5.12f. If it does work you could just copy the implementation into your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>