<?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>nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37424/nrf52-rtt-log-not-showing-all-messages</link><description>Hello, 
 I am using nRF52832, s132_nrf5.0.0_softdevice. 
 I am trying to build a ble gsm gateway. 
 I have 3 different peripheral devices. They have some services. 
 On my gateway software, i am posting some debug message with nrf_log_info, nrf_log_warning</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Aug 2018 06:06:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37424/nrf52-rtt-log-not-showing-all-messages" /><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144829?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 06:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cfc3222-e3ea-4cf0-863e-27e5fdade877</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;It might be worth a shot to try deferred logging with a large &lt;code&gt;NRF_LOG_BUFSIZE&lt;/code&gt;, then. As you don&amp;#39;t get any log output with deferred logging I wonder if you handle printing of logs in your main loop, typically before going to sleep? You can refer to any of the example applications in the SDK that use deferred logging or the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_nrf_log.html?cp=4_0_0_3_26"&gt;Logger module documentation&lt;/a&gt; for how to do it. Essentially you need to&amp;nbsp;call &lt;code&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__log__ctrl.html?cp=4_0_0_6_11_16_5_3#gaea4ee51a39f70f14ad2e3213fa497ade"&gt;NRF_LOG_PROCESS()&lt;/a&gt;&lt;/code&gt;&amp;nbsp;repeatedly until it returns false (indicating that there are no more logs to process) before going to sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144612?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 00:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a25e65-94a6-4cd3-af37-607c025d48fd</guid><dc:creator>awneil</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/37424/nrf52-rtt-log-not-showing-all-messages/144136"]I expect the problem is that your application produces logs faster than they are processed. Even if you don&amp;#39;t use deferred logging, the RTT buffer will eventually fill up if you log too fast.[/quote]
&lt;p&gt;I have found that it is &lt;em&gt;very&lt;/em&gt; easy to log &amp;quot;too fast&amp;quot;.&lt;/p&gt;
&lt;p&gt;Or, in other words, the RTT logging is rather&amp;nbsp;&amp;quot;low bandwidth&amp;quot;.&lt;/p&gt;
&lt;p&gt;So you really need to minimise the amount of debug you&amp;#39;re sending.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if you can get any better performance over the UART ... ?&lt;/p&gt;
&lt;p&gt;Make sure that you don&amp;#39;t have this error in your NRF_LOG_PROCESS handling:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34666/nrf5-sdk-v15-0-0-bug-report-incorrect-use-of-nrf_log_process-in-ble_app_uart-peripheral-example-among-others"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/34666/nrf5-sdk-v15-0-0-bug-report-incorrect-use-of-nrf_log_process-in-ble_app_uart-peripheral-example-among-others&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144584?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 15:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137aab19-932f-4565-980c-794461eaf9b7</guid><dc:creator>Muhammet YILDIZ</dc:creator><description>&lt;p&gt;Acctualy it is not. For small strings yes it is working well. But in my case it is not.&lt;/p&gt;
&lt;p&gt;I am building json objects and it is little nested and have some nested arrays and objects.&lt;/p&gt;
&lt;p&gt;I closed almost all the nrf_logs (committed) and almost only one is available. That takes a char pointer&amp;nbsp;which is printing json string.&lt;/p&gt;
&lt;p&gt;Still i cant get all the message i need to see.&lt;/p&gt;
&lt;p&gt;I have see it preperly to detect json problems and see any memory lekages. When i finish my job, i am planing to delete json print and close de debug define.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So i realy need the log works preparly. Please can you help me with this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When i enable defered option, there is no message on the segger rtt viewer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144144?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 11:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da3b7182-4b67-439c-9790-2ca315ee8659</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am glad to hear&amp;nbsp;you got it working.&lt;/p&gt;
&lt;p&gt;(By the way, it makes sense that increasing NRF_LOG_BUFSIZE does not work if that is all you changed. The lager buffer is only useful in case you use deferred logging, which you are not.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144140?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 10:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2845065-87f2-4d9e-bec0-f13ed65b3880</guid><dc:creator>Muhammet YILDIZ</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Even if i increse the NRF_LOG_BUFSIZE to 16384, nothing changes.&lt;/p&gt;
&lt;p&gt;But when i increase SEGGER_RTT_CONFIG_BUFFER_SIZE_UP to 512, it solves my problem for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTT Log Not Showing All Messages</title><link>https://devzone.nordicsemi.com/thread/144136?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 10:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566eab59-8fd7-4b96-a957-83d45f8b972b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I expect the problem is that your application produces logs faster than they are processed. Even if you don&amp;#39;t use deferred logging, the RTT buffer will eventually fill up if you log too fast.&lt;/p&gt;
&lt;p&gt;There are a few possible ways to handle this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Increase the RTT buffer size&lt;/li&gt;
&lt;li&gt;Reduce the amount of logging&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You could also consider using deferred logging with a very large NRF_LOG_BUFSIZE. Assuming your application only produces a large number of logs for a short time, then it would perhaps have time to process the logs later when things settle down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>