<?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 log doesn&amp;#39;t show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55368/rtt-log-doesn-t-show-in-debug-terminal-of-emstudio-v4-3</link><description>Hi, 
 I am using nRF SDK v16 with nRF52DK (pca10040) development board. 
 I&amp;#39;ve chosen to use RTT logging and I can see my app logs in JLinkRTTViewer window --- however, I can&amp;#39;t see those logs in &amp;quot;Debug Terminal&amp;quot; of SEGGER emStudio v4.3. I can debug and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 12 Jan 2020 00:18:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55368/rtt-log-doesn-t-show-in-debug-terminal-of-emstudio-v4-3" /><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/228684?ContentTypeID=1</link><pubDate>Sun, 12 Jan 2020 00:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e19996-7a71-4410-bd7e-428db8f9536c</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;I confirmed that my working sdk_config.h doesn&amp;#39;t have the RETARGET related lines as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/228656?ContentTypeID=1</link><pubDate>Sat, 11 Jan 2020 05:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c40660e-ed0b-400d-aeeb-d1096ccdb009</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;Somehow after using a clean sdk_config.h I can see the RTT log in Debug Terminal. But I can&amp;#39;t tell which factor dominate the change.&lt;/p&gt;
&lt;p&gt;I am sure I have almost the same as your above mentioned configs... just need double check the RETARGET_ENABLED one later.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/228491?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 08:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6d87d2d-e7b2-402f-b01c-3b61dd2d4d8d</guid><dc:creator>Bjoern Gutgesell</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i had the same problem, and spent one whole day to solve this:&lt;/p&gt;
&lt;p&gt;in sdk_config.h set:&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_ENABLED 1&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_UART_ENABLED 0&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/p&gt;
&lt;p&gt;#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in sdk_config.h delete lines whith:&lt;/p&gt;
&lt;p&gt;RETARGET_ENABLED&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Bjoern&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/225861?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 12:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fccaaab2-4eb1-4794-a226-3271981cfdb6</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;Sorry I had clicked &amp;quot;verify answers&amp;quot; by mistake so I clicked &amp;quot;reject answer&amp;quot; as remedy...&lt;/p&gt;
&lt;p&gt;Yes, when using DebugTerminal, I was not using RTTViewer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/225408?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 14:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673f6f3c-d9bb-422d-879c-d77dd22d9693</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi yf13,&lt;/p&gt;
&lt;p&gt;I assume you only have one RTT terminal viewer open and not both when you are testing this?&lt;/p&gt;
&lt;p&gt;Because it will not work having the JLinkRTTViewer + the Segger RTT viewer open at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/225054?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 02:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e005fd7-e6ae-444d-8407-44e312f73cd6</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;my app is based on ble_peripharal/ble_app_template but I changed it to use s112 since I don&amp;#39;t need s132. To confirm gain, log related config lines here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ cat sdk_config.h | fgrep NRF_LOG_ | fgrep -e LOG_ENABLED -e RTT_ENABLED
// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
#ifndef NRF_LOG_BACKEND_RTT_ENABLED
#define NRF_LOG_BACKEND_RTT_ENABLED 1
// &amp;lt;e&amp;gt; NRF_LOG_ENABLED - nrf_log - Logger
#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So it seems that they are both ENABLED, otherwise I won&amp;#39;t be able to see logs in JLinkRTTViewer.&lt;/p&gt;
&lt;p&gt;BTW, I can always see logs with JLinkRTTViewer --- initially there are extra empty lines in the viewer which I solved by set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0. However, I&amp;#39;ve never seen logs from the DebugTerminal in the studio.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;yf13&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/224964?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 15:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31354e5b-55f1-48f1-b02a-58a30e2ecdd7</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;hi yf13,&lt;/p&gt;
&lt;p&gt;what example have you based your application on?&lt;/p&gt;
&lt;p&gt;Could you check this in the sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_LOG_BACKEND_RTT_ENABLED 1

NRF_LOG_ENABLED 1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/224959?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 14:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff2a70f-de2d-4921-a6e3-8a2168eaf348</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;actually I had a typo above as well, the sdk_config.h reads like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ fgrep FLAG_AUTO sdk_config.h 
// &amp;lt;q&amp;gt; NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED  - For each printed LF, function will add CR.
#ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
#define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 0
$&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But the Debug Terminal still shows nothing even though RTT Viewer works.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;yf13&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/224865?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc5bd4e-c34c-4e28-a9bb-a6d279066738</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi yf13,&lt;/p&gt;
&lt;p&gt;I am sorry for the misunderstanding, there was a typo in the case I sent.&lt;/p&gt;
&lt;p&gt;The correct line is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/224827?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 01:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d7bc36-916d-4a2f-b0bd-8274d9dfe09e</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;Thanks, actually I already have&amp;nbsp;&lt;span&gt;NRF_PRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED as 0 in my sdk_config.h, but it doesn&amp;#39;t help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT log doesn't show in Debug Terminal of emStudio v4.3</title><link>https://devzone.nordicsemi.com/thread/224672?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e4b837-2f8a-4f23-b020-357ea906d305</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi yf13,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45985/nrf_log-not-working-on-segger-embedded-studio/182742#182742" rel="noopener noreferrer" target="_blank"&gt;Please refer to this answer.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>