<?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 collect log files for device nrf52832 ? Any debugger available and how to use ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104923/how-to-collect-log-files-for-device-nrf52832-any-debugger-available-and-how-to-use</link><description>Hello , 
 Good Afternoon . 
 we are using NRF 52832 with segger and SDK 15.0.0. 
 We are flashed code using DK board via SWD(Single Wire Debug). 
 On client side they need to collect logs . 
 Is this possible to collect logs ?? 
 or Any debugger need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Oct 2023 06:33:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104923/how-to-collect-log-files-for-device-nrf52832-any-debugger-available-and-how-to-use" /><item><title>RE: How to collect log files for device nrf52832 ? Any debugger available and how to use ?</title><link>https://devzone.nordicsemi.com/thread/452136?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 06:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794db669-c4bf-4955-94de-d44e29994917</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Good Morning !!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As i gone through your previous post and made settings .&lt;/p&gt;
&lt;p&gt;Its worked now through RTT Viewer.&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to collect log files for device nrf52832 ? Any debugger available and how to use ?</title><link>https://devzone.nordicsemi.com/thread/451749?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 13:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9398c2d4-998e-40dd-8925-d27119fecdae</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Segger RTT is a good option and is supported out of the box. You can observe the link via &lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/"&gt;Segger RTT Viewer&lt;/a&gt;&amp;nbsp;(you can also observe RTT logs from within Segger Embedded Studio if you use that). I suggest you refer to an SDK example to see how logging is used.&lt;/p&gt;
&lt;p&gt;As most examples use UART by default, you have to change the configuration slightly in sdk_configh.h. Disable UART logging by setting&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED to 0, and enable RTT logging by setting&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED to 1. You also want to set NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0. I suggest you experiment with this on an exmaple first to see how it works. Then&amp;nbsp; you can do the same on your custom board, and refer to&amp;nbsp;a example project for which files, included and configs you need in order to get the logging working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to collect log files for device nrf52832 ? Any debugger available and how to use ?</title><link>https://devzone.nordicsemi.com/thread/451737?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 13:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63cec55-bbfd-415f-a80c-81b9f37e8d8c</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hello ,&lt;/p&gt;
&lt;p&gt;Good Evening !!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We have already used UART&amp;nbsp;in application to interface 1 device. So now we can&amp;#39;t use UART for log purpose as having 1 instance of UART.&lt;/p&gt;
&lt;p&gt;So RTT is another option for us but it need segger debugger and code is re flashed at debug time .&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t want to disclose code at client side. So we are trying to get a logger/serial terminal like Arduino for nordic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can we use J-Link Commander for logging purpose ?&lt;/p&gt;
&lt;p&gt;Or any other option ??&lt;/p&gt;
&lt;p&gt;Waiting for your response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to collect log files for device nrf52832 ? Any debugger available and how to use ?</title><link>https://devzone.nordicsemi.com/thread/451702?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 11:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c264531-e153-42ab-b4eb-9d809b88c9ff</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then nRF5 SDK includes a &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_nrf_log.html"&gt;logger module&lt;/a&gt;&amp;nbsp;that is used in most examples. This can be configured to use multiple backends, and by default UART is used in most examples. You can also configure it to use segger RTT if that is preferable.&lt;/p&gt;
&lt;p&gt;With RTT you need a Segger debugger, but with UART you just need some form of USB-UART bridge for connecting to a computer. As you are testing on a DK both options will work out of the box, as the onboard Segger debugger also works as a USB-UART bridge.&lt;/p&gt;
&lt;p&gt;Some examples have both RTT and UART enabled by default, and you can see this for instance in the&amp;nbsp;&lt;span&gt;HKDF Example. The &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/nrf_crypto_hkdf_example.html"&gt;example documentation&lt;/a&gt;&amp;nbsp;explain how to configure your UART terminal.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>