<?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>Log show only the first few lines</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54690/log-show-only-the-first-few-lines</link><description>Hi, 
 I have a custom board with nrf52832 mcu and I use FreeRTOS with SDK 16. 
 I tried the logging feature with NRF_LOG_XX() functions, but only the first few lines showed after booting. 
 I tested it from a task: 
 while(true){ //SEGGER_RTT_WriteString</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Dec 2019 08:42:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54690/log-show-only-the-first-few-lines" /><item><title>RE: Log show only the first few lines</title><link>https://devzone.nordicsemi.com/thread/224084?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 08:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555c912d-50d9-470b-8de3-691d50b40c20</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for letting us know this. I will create a ticket to let the developers know about this.&lt;br /&gt;For your reference, the internal thread to fix it is&amp;nbsp;NRFFOETT-2407&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log show only the first few lines</title><link>https://devzone.nordicsemi.com/thread/224062?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2019 07:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e01fffe4-8055-4e0c-85ff-c3e7374d90c9</guid><dc:creator>nevi</dc:creator><description>&lt;p&gt;There was not hardfault. The other functionalities worked well&amp;nbsp;regardless of the value of the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_LOG_ALLOW_OVERFLOW.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log show only the first few lines</title><link>https://devzone.nordicsemi.com/thread/223776?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 07:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac0bf8d0-39fa-4577-a4bc-9f20e99dcb78</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;Are you sure that if&amp;nbsp;&lt;span&gt;NRF_LOG_ALLOW_OVERFLOW&amp;nbsp; is set to 1, only logging stops but the application is still running? I am guessing that there is a stack overflow and the core might have hardfaulted?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log show only the first few lines</title><link>https://devzone.nordicsemi.com/thread/221480?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 08:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c5cf2f-d4cd-4d33-9e00-368eae5c5b0b</guid><dc:creator>nevi</dc:creator><description>&lt;p&gt;I think, the problem was&amp;nbsp;that the&amp;nbsp;log buffer (SEGGER_RTT_CONFIG_BUFFER_SIZE_UP) was too small and the&amp;nbsp;NRF_LOG_ALLOW_OVERFLOW was 1.&lt;/p&gt;
&lt;p&gt;If I change the&amp;nbsp;NRF_LOG_ALLOW_OVERFLOW to zero, it worked fine. Of course some logs missed, but&amp;nbsp;&amp;nbsp;the logging not stop.&lt;/p&gt;
&lt;p&gt;But if the&amp;nbsp;&lt;span&gt;NRF_LOG_ALLOW_OVERFLOW&amp;nbsp; is 1 and the log buffer overflowed, no more log received.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The documentation said:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;If set then oldest logs are overwritten. Otherwise a marker is injected informing about overflow.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think it&amp;nbsp;works the other way around.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And not mentioned to the logging will stop after overflow. And I can&amp;#39;t see the marker when the buffers overflowed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log show only the first few lines</title><link>https://devzone.nordicsemi.com/thread/221417?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 18:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05a56e8-4503-476f-ab10-d0b6bc936b45</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is a lot of processing in NRF_LOG_XX that eventually leads to Segger_RTT_Printf . If Segger_printf is working fine and NRF_LOG_XX is not, then there must be either a bug in NRF or you have not selected enough buffer. In any case it would be easier if you attach the compilable project for me to try it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>