<?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>nRF Log Files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51138/nrf-log-files</link><description>Hi 
 I want to use loggers in the program. I understand that the code itself uses NRF_LOG. But I do not understand where those log details are printed. So, how do I create custom logs and save to some file? 
 Thanks in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2019 13:20:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51138/nrf-log-files" /><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/205058?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 13:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34173d9a-9d16-482d-bfe1-bbaa04c796e4</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Yes. Saving to a file option is available in Putty. Here&amp;#39;s how I did it.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Putty-Log.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sai Kiran.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/205009?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 11:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b964aa-bcea-4df2-a233-d883558a0df3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. That is the UART terminal that you need to use. The nRF doesn&amp;#39;t have access to your file system on your computer &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; It will only log using either UART or RTT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But you figured it out? Are you able to log to your file?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204982?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 10:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063446e4-c776-4b31-85e8-34c0719cbe30</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There was logging option available in putty GUI on linux also. I should have checked before asking. My bad.&lt;/p&gt;
&lt;p&gt;Excuse me for that.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sai Kiran.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204981?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 09:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a125c419-8819-4af0-b9e6-6c2d34f66883</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just used Putty to do the same thing, but this time in the Serial Line I put &amp;quot;/dev/ttyACM0&amp;quot;. It&amp;#39;s working. If I want to save these logs into a file, what should I do?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sai Kiran.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204975?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 09:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8ca1bc-0090-4da6-943b-632b077d82e2</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;I am trying to check if the serial port is correct. Still working on it. I will try on a Windows computer as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sai Kiran.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204970?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 09:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7cad84e-860d-440d-a7f2-efc7c69fb675</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not a linux expert, but are you sure that it is the correct serial port? Or maybe you have the serial port open in another application?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Otherwise the settings looks correct (well, I only see the baudrate).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t happen to have a windows computer? Termite is quite easy to set up. It suggests port and the settings that are mentioned in the link that I sent you. Just to see that the DK is actually responding.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204942?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 08:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487996c0-2195-48d1-9577-f33030bb91f0</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I tried doing whatever you told, using Putty. Here is the screenshot of the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="345" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/LOG_5F00_1.png" width="415" /&gt;&lt;/p&gt;
&lt;p&gt;When I try to connect, the following error comes up.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Log-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204923?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 07:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cdbb450-6607-4c4c-b773-6dfefff0d34f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;By default, if the UART is set as log backend, they use pins 6 and 8. These pins are connected to the pinout, so you&amp;nbsp;&lt;strong&gt;can&lt;/strong&gt; use an external UART module, but they are also connected to the Segger chip on board the DK, so you should be able to use the COM port connected via the USB on the DK to monitor the UART output.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The terminal settings should be like it is described in point 2 &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_nus_eval.html&amp;amp;cp=5_1_4_2_2_24_2&amp;amp;anchor=project_uart_nus_eval_test" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So no, you don&amp;#39;t need to connect the TX and RX pins to anything as long as you don&amp;#39;t change the pin numbers, 6 and 8 (but that is an option as well).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204841?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 15:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0074b96d-1c01-4dea-b562-f5b75e93c62f</guid><dc:creator>Sai Kiran</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the sdk_config.h file, UART value is set to 1, which means that I can use putty to view the log files, right? How to do that? Do I need to connect TX and RX pins or something like that? I have DK connected to the system(Linux) via USB.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sai Kiran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Log Files</title><link>https://devzone.nordicsemi.com/thread/204739?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 11:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb75aa63-808a-4c73-8443-2d284264cbdd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That depends on what the backend for the log is set to. Search for &amp;quot;NRF_LOG_BACKEND&amp;quot; in sdk_config.h. There are two possible defines there. UART or RTT, and they are set to either 0 or 1. Which one is set to 1?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If it is UART, it should be printed over the UART, which is picked up by the programming chip on the DK, and you can view it using e.g. &lt;a href="https://www.compuphase.com/software_termite.htm" rel="noopener noreferrer" target="_blank"&gt;Termite&lt;/a&gt;, or Putty.&lt;/p&gt;
&lt;p&gt;If it is RTT, then you can use &lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/" rel="noopener noreferrer" target="_blank"&gt;JLink RTT Viewer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If it is RTT &lt;strong&gt;and&lt;/strong&gt;&amp;nbsp;you are using Segger Embedded Studio, then you can view the log while you are debugging in your IDE.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t find any Backend defines in sdk_config.h, what project/examples are you using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>