<?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>how to view debug log please?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86410/how-to-view-debug-log-please</link><description>Hi, All 
 Just wonder how to view the log info like below, it is used in peripheral uart example. 
 
 LOG_DBG ( &amp;quot;tx_done&amp;quot; ); 
 
 which config/tool allow this please? 
 
 Thanks! 
 Ping</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2022 13:21:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86410/how-to-view-debug-log-please" /><item><title>RE: how to view debug log please?</title><link>https://devzone.nordicsemi.com/thread/360836?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 13:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb966f60-2e85-4dae-8ab2-1c379b8de807</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Ping,&lt;/p&gt;
&lt;p&gt;Please open a new ticket about this as it is not related to the original question in the ticket.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to view debug log please?</title><link>https://devzone.nordicsemi.com/thread/360797?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 11:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c329491-3811-4431-8a7d-7bca8cc9a5cc</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Thank you, I see it now!&lt;/p&gt;
&lt;p&gt;On a separate question, both central and peripheral uart examples keep crashing when message is slightly long, any solution to this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Ping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to view debug log please?</title><link>https://devzone.nordicsemi.com/thread/360774?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 11:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:319df280-896c-4537-a8a4-2b695a1933c7</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Ping,&lt;/p&gt;
&lt;p&gt;As I said in my previous reply you must set the log level.&amp;nbsp;You can set the default&lt;span&gt;&amp;nbsp;&lt;/span&gt;log&lt;span&gt;&amp;nbsp;&lt;/span&gt;level to debug by adding the following to prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_DEFAULT_LEVEL=4&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to view debug log please?</title><link>https://devzone.nordicsemi.com/thread/360687?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 08:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f5a0ee-0fd3-4c2a-aeea-68baa61ebbb3</guid><dc:creator>PingISTL</dc:creator><description>&lt;p&gt;Hi, Marte&lt;/p&gt;
&lt;p&gt;Thanks for reply.&lt;/p&gt;
&lt;p&gt;For this particular example - the peripheral UART, I can see the RTT log like below&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;LOG_INF&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Received data from: %s&amp;quot;&lt;/span&gt;&lt;span&gt;, log_strdup(addr));&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and also I opened a UART terminal to receive/send some message over UART, &lt;strong&gt;but I cannot see the LOG_DBG info like&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;LOG_DBG(&amp;quot;rx_rdy&amp;quot;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;);&lt;/strong&gt; etc.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Please help!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Ping&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to view debug log please?</title><link>https://devzone.nordicsemi.com/thread/360684?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 08:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364f0be3-e754-41d1-b5f8-5dda0b5a0f10</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Ping,&lt;/p&gt;
&lt;p&gt;To get debug logs you must set the log level&amp;nbsp;to the highest level. You can find more information about the logging here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_logging.html"&gt;Logging in nRF Connect SDK&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/logging/index.html#logging-api"&gt;Zephyr Logging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Additionally, in the Peripheral UART sample logging is done over RTT and not UART, since UART is used for other things, so you must use RTT Viewer to view the logs as explained here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/286762/How%20to%20use%20RTT"&gt;How to use RTT&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>