<?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>NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16192/nrf_log-macros-to-segger_rtt</link><description>Hi, I use PCA10040 v1.1 with Keil MDK 5.20 and SDK 12. I have installed J-Link 5.12f driver. 
 I usually use the NRF_LOG_ENABLED MACRO to check the UART debug message. 
 It seems to me that the SEGGER_RTT can be an alternative way to check log messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 Jul 2017 08:15:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16192/nrf_log-macros-to-segger_rtt" /><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61821?ContentTypeID=1</link><pubDate>Sun, 02 Jul 2017 08:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661c0b1a-6f4f-4665-9444-de64f771bbc8</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;I think define NRF_LOG_ENABLED and NRF_LOG_BACKEND_SERIAL_USES_RTT in makefile is better way to go as that is indicated from the sdk_config.h. change them directly in sdk_config.h is not recommended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61820?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2016 18:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaf4e46c-7205-4655-af74-2e90d9db5f5e</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;I could not get this working until i called NRF_LOG_FLUSH() after each call for some reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61819?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 06:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72805f4-90aa-4ce2-a21e-94ac95e487d8</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;You just need to cast it into uint32_t, nrf_log_push() has different usage. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/nrf_log.html?cp=4_0_0_3_14_0#nrf_log_processing"&gt;the documentation&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61817?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 09:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a541c5e-c4ed-4561-b190-f94f3792dd0f</guid><dc:creator>Catalin</dc:creator><description>&lt;p&gt;Weird, if I try&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Info with integer parameter %d\n\r&amp;quot;, 10);&lt;/p&gt;
&lt;p&gt;it works, but&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Info with string parameter %s\n\r&amp;quot;, &amp;quot;some string&amp;quot;);&lt;/p&gt;
&lt;p&gt;I get:&lt;/p&gt;
&lt;p&gt;error:  #167: argument of type &amp;quot;char *&amp;quot; is incompatible with parameter of type &amp;quot;uint32_t&amp;quot;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;Nevermind, nrf_log_push() seems to take care of that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61816?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 05:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16536b4e-b842-40cc-86bd-62a659152256</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;yes, NRF_LOG_INFO (and similar) are printf-like.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61814?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 00:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6a0c380-a21b-467b-81d5-e035d408f24c</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;@Catalin&lt;/p&gt;
&lt;p&gt;The nRF5_SDK_12.0.0_12f24da doesn&amp;#39;t have the &lt;code&gt;nrf_log.c&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;However, it has &lt;code&gt;components/libraries/log/nrf_log.h&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;NRF_LOG_INFO&lt;/code&gt;, &lt;code&gt;NRF_LOG_ERROR&lt;/code&gt;, &lt;code&gt;NRF_LOG_WARNING&lt;/code&gt;, and &lt;code&gt;NRF_LOG_DEBUG&lt;/code&gt; is defined in that header file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61818?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 19:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43c47df-e577-4345-bbe3-d4d048c901d4</guid><dc:creator>Catalin</dc:creator><description>&lt;p&gt;Is NRF_LOG_INFO (and the other NRF_LOG____ functions) handling OK &amp;quot;printf-like parameters&amp;quot;? Since from what I can see that no longer seems to work somewhere in the macro expansions and the old NRF_LOG_PRINTF that I was using in SDK11 does no longer seem to be present :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61813?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 19:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3bc532-6405-4dc0-9553-7b16b08cbe69</guid><dc:creator>Catalin</dc:creator><description>&lt;p&gt;I no longer see a nrf_log.c in SDK12, where do you have that file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61815?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 13:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56cceb4b-9285-4d83-b3ed-ea1d3bc1cfd3</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Yes, nrf_log supports RTT as one of possible backends. In sdk_config.h you can find an option NRF_LOG_BACKEND_SERIAL_USES_RTT that needs to be enabled (NRF_LOG_BACKEND_SERIAL_USES_UART should be unset then).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG MACROS to SEGGER_RTT?</title><link>https://devzone.nordicsemi.com/thread/61812?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 07:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:750f912d-e8e8-4117-9f31-7bf10b92d6c9</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;nrf_log.c allows logging to RTT since it was created (SDK10 i think). In SDK12 just change options in sdk_config.h, in previous versions set NRF_LOG_USES_RTT=1 define and make sure that there are no other NRF_LOG_USES_XXX defines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>