<?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>JLink RTT logs not flushing at device startup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48507/jlink-rtt-logs-not-flushing-at-device-startup</link><description>Hello, 
 I&amp;#39;ve been using the nRF52832 with a Segger JLink Pro which works fine during execution. However during the system initialisation, this is just before getting to the application main loop the RTT logs wont entirely display. The internal buffer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2019 14:24:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48507/jlink-rtt-logs-not-flushing-at-device-startup" /><item><title>RE: JLink RTT logs not flushing at device startup</title><link>https://devzone.nordicsemi.com/thread/196314?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 14:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fd01d7-2437-4473-82d3-f48d034ca8e1</guid><dc:creator>AndoniV</dc:creator><description>&lt;p&gt;Thank you J&amp;oslash;rgen this really helped, sorry for the late reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink RTT logs not flushing at device startup</title><link>https://devzone.nordicsemi.com/thread/193703?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 13:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c207b9f-b126-434d-b1ee-f31059ee5551</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I would recommend that you have a look at the &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;RTT description on Seggers webpage&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The configs are&amp;nbsp;used in SEGGER_RTT_Conf.h, and functions from SEGGER_RTT.h/c is used in NRF_LOG RTT backend to push the logs to the RTT terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink RTT logs not flushing at device startup</title><link>https://devzone.nordicsemi.com/thread/193560?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 07:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:277af90a-95b5-4dd5-bfed-43e866a32a25</guid><dc:creator>AndoniV</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Sorry I did not provide the full context.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;- I am using 15.2.0 but I&amp;#39;ve seen the same behaviour with 11.0&lt;/li&gt;
&lt;li&gt;- I&amp;#39;ve used a J-Link base and a J-Link pro, both seem to be the same, I haven&amp;#39;t tried using UART backend.&lt;/li&gt;
&lt;li&gt;- I have tried disabling&amp;nbsp;&lt;span&gt;NRF_LOG_ALLOW_OVERFLOW with no difference.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;- SEGGER_RTT_CONFIG_BUFFER_SIZE_UP is currently set to 512&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Looking at the SEGGER RTT options, I changed the&amp;nbsp;SEGGER_RTT_CONFIG_DEFAULT_MODE to 2 and now logs are flushed as they should, thank you for pointing me in the right direction.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could I ask what are the effects of increasing the&amp;nbsp;SEGGER_RTT_CONFIG_BUFFER_SIZE_UP and&amp;nbsp;SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN? How do these play along with the&amp;nbsp;NRF_LOG_BACKEND_RTT_xxx options and the&amp;nbsp; NRF_LOG_xxx options?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Andoni&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink RTT logs not flushing at device startup</title><link>https://devzone.nordicsemi.com/thread/192759?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 15:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9048b499-588f-401f-8d02-1099afb8539f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using?&lt;/p&gt;
&lt;p&gt;Are you only seeing this issue with this specific J-Link type, or it is general RTT issue? Have you tested to see if your get the same issue with UART backend?&lt;/p&gt;
&lt;p&gt;Any change if you set&amp;nbsp;NRF_LOG_ALLOW_OVERFLOW to 0? What is the size of&amp;nbsp;SEGGER_RTT_CONFIG_BUFFER_SIZE_UP in your application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>