<?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 is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77186/log-is-not-printed-on-j-link-rtt-viewer</link><description>Hi, 
 
 I am using nRF5340 development board with J-Link connected to &amp;quot;TRACE&amp;quot; pins: SWDIO and SWDCLK. 
 In app project I have these settings in prj.conf file: 
 CONFIG_USE_SEGGER_RTT=y CONFIG_RTT_CONSOLE=y CONFIG_UART_CONSOLE=n 
 In program I use &amp;quot;printk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jul 2021 09:18:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77186/log-is-not-printed-on-j-link-rtt-viewer" /><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/319101?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 09:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f5b96a1-26af-4b8d-a907-f3c68607aeb1</guid><dc:creator>Simon</dc:creator><description>[quote user="Carl Sun"]ut still some printk logs can not be printed on RTT viewer. What is the problem? what can I do?[/quote]
&lt;p&gt;&amp;nbsp;Can you upload a zipped project that demonstrates this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/319095?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 08:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597c8210-178f-4481-b784-7c00e748f65f</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;hi, I added this line in prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_BUFFER_SIZE=4096&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and ran cmake before I compile the project.&lt;/p&gt;
&lt;p&gt;now there is no message like &amp;quot;messages dropped&amp;quot;, but still some printk logs can not be printed on RTT viewer. What is the problem? what can I do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Carl.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318965?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 11:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20310fbc-6a34-4ea7-90d6-451c57f0a480</guid><dc:creator>Simon</dc:creator><description>&lt;p style="color:rgba(0, 0, 0, 1);font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;margin-top:0;text-indent:0;text-transform:none;white-space:normal;"&gt;It seems like&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/stefxinet"&gt;StefXinet&lt;/a&gt;&amp;nbsp;is mixing the nRF5 SDK and the nRF Connect SDK (NCS). You will not find any sdk_config.h file in NCS.&lt;/p&gt;
&lt;p style="color:rgba(0, 0, 0, 1);font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;To get rid of the &amp;quot;&lt;span&gt;26 messages dropped&lt;/span&gt;&amp;quot; message increase the config&amp;nbsp;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/kconfig/CONFIG_LOG_BUFFER_SIZE.html"&gt;CONFIG_LOG_BUFFER_SIZE&lt;/a&gt;&amp;nbsp;in prj.conf. Check the file &amp;lt;sample&amp;gt;/&amp;lt;build folder&amp;gt;/zephyr/.config to see what it&amp;#39;s set to by default.&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:rgba(0, 0, 0, 1);font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:rgba(0, 0, 0, 1);font-family:Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318943?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 09:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7706146d-3efd-4416-a73a-c0caf4ba1eac</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Carl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318940?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 09:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96aeb84-4a71-49b5-83be-0c788820dd2f</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;You could search in your code where those definitions are located. I suppose that the names are the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318935?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 09:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee2da519-3b45-458d-b65c-0a88dd62ef09</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;I am using nRF5340 project, we use&amp;nbsp;zephyr, it seems we don&amp;#39;t have skd_config.h any more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318934?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 09:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dda0c8a-b93b-4444-88a1-39b6e9a31345</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;You can find them in&amp;nbsp;sdk_config.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318933?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 09:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058d5f28-48cc-403d-b2ab-62e8bb12d4df</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;Hi， Thanks,&lt;/p&gt;
&lt;p&gt;In which file should I change this value?&lt;/p&gt;
&lt;p&gt;I am using nRF5340 and SDK v1.4.2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Carl.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: log is not printed on J-Link RTT Viewer</title><link>https://devzone.nordicsemi.com/thread/318917?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 08:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35282f8d-a0fa-4587-91bb-8a5de5f004a6</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;you could try to increase the RTT buffer dimension:&amp;nbsp;SEGGER_RTT_CONFIG_BUFFER_SIZE_UP,&amp;nbsp;In one of my project it is 512&lt;/p&gt;
&lt;p&gt;also you should increase the&amp;nbsp;NRF_LOG_BUFSIZE and&amp;nbsp;NRF_LOG_STR_PUSH_BUFFER_SIZE&lt;/p&gt;
&lt;p&gt;bye,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>