<?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>logging in modules with RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57671/logging-in-modules-with-rtt</link><description>Hi All, 
 I wan&amp;#39;t to have logging via segger RTT from enabled modules in the MESH SDK. 
 Tried several config options in sdk_config.h, but without luck. 
 I made a diff of the config to highlight the relevant changes. 
 
 Using light-switch examples.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 16:15:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57671/logging-in-modules-with-rtt" /><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/237210?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 16:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b2098f-9dfc-4f52-8373-9387ba99d98e</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have a look at&amp;nbsp;&lt;code&gt;__LOG_INIT()&amp;nbsp;&lt;/code&gt;function in the example&amp;#39;s main.c file. List each module as from where the logging needs to be printed&amp;nbsp;as a first argument to this function(See in log.h under LOG_SOURCES). Second argument controls the verbosity of the logs.&amp;nbsp;All the messages to be printed must be logged using &lt;code&gt;__LOG()&amp;nbsp;&lt;/code&gt; API.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;​Also, which modules and drivers are you talking about here? Modules of the Mesh SDK? If it is modules of the mesh SDK, then you should update &lt;code&gt;__LOG_INIT&lt;/code&gt; as I mentioned above.
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div title="logging in modules with RTT - Nordic DevZone"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/235134?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 10:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abebd88-7f9a-457a-8846-c80939869a9c</guid><dc:creator>Wim</dc:creator><description>&lt;p&gt;No not working.&lt;/p&gt;
&lt;p&gt;The logging infrastructure is extremely complicated and in my opinion overengineered. Probably it is all very flexible, but not without a manual.&lt;/p&gt;
&lt;p&gt;Many defines are preprocessor symbols, dozens of other options can be set in sdk_config.h.&lt;/p&gt;
&lt;p&gt;I try to&amp;nbsp;understand the logic behind it.&lt;/p&gt;
&lt;p&gt;For example, I found following defines in the sources:&amp;nbsp; NRF_LOG_LEVEL,&amp;nbsp;NRF_LOG_DEFAULT_LEVEL,&amp;nbsp;NRF_LOG_FILTER,&amp;nbsp;NRF_LOG_ENABLED,&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED, ....&lt;/p&gt;
&lt;p&gt;I tried also several preprocessor defines:&lt;/p&gt;
&lt;p&gt;-DNRF_MESH_LOG_ENABLE=NRF_LOG_USES_RTT&lt;br /&gt; -DNRF_LOG_USES_RTT=1&lt;br /&gt; -DLOG_ENABLE_RTT=1&lt;br /&gt; -DLOG_LEVEL_DEFAULT=4&lt;br /&gt; -DLOG_ENABLE_RTT=1&lt;br /&gt; -DNRF52_SERIES&lt;br /&gt; -DPROV_DEBUG_MODE&lt;br /&gt; -DLOG_SRC_PROV=1&lt;/p&gt;
&lt;p&gt;and this goes on and on ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Several options has relations with each other, some of them mutually exclusive, ...&lt;/p&gt;
&lt;p&gt;Without a descent description of all of this, it is very hard to understand.&lt;/p&gt;
&lt;p&gt;An example project where all logging&amp;nbsp;is enabled via RTT, could also help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/234893?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 12:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18182916-8778-43cb-a617-d5035474ebe7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Can you try adding&amp;nbsp;&lt;span&gt;NRF_MESH_LOG_ENABLE=NRF_LOG_USES_RTT to your&amp;nbsp;preprocessor symbols?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/234248?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 16:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7b89c1-9a9c-47f1-91b2-1b3f20d8f135</guid><dc:creator>Wim</dc:creator><description>&lt;p&gt;Like I mentioned in my first post; this&amp;nbsp;was already done, you can see that in the diff I added.&lt;/p&gt;
&lt;p&gt;It&amp;nbsp;must be something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/234243?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 15:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9354623a-fe6d-497b-a614-5366f6cd0695</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Can you try using the CMSIS Configuration Wizard? Right-Click on sdk_config.h -&amp;gt;&amp;nbsp;&lt;span&gt;CMSIS Configuration Wizard. Go to nRF Drivers and choose which drivers you want to enable. Extend the folder and enable logging for that driver.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To enable in the wizard check of the box, see picture below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0b2e1a3d74964d8897e87d0062a66ed8/Untitled.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/233905?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 09:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df704d87-6eb8-4cb3-8c2a-2f92930e0fcf</guid><dc:creator>Wim</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;yes, RTT is logging on my project, but only for messages which I log in my application with _LOG.&lt;/p&gt;
&lt;p&gt;My question was how the modules and drivers can be configured to do logging via RTT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: logging in modules with RTT</title><link>https://devzone.nordicsemi.com/thread/233900?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 09:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e564445-2d6a-4843-9930-acf0384f17de</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;RTT logging should already be enabled by default. Have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30767/mesh-debug-print" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>