<?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 debug nRF52 without RTT?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31949/how-to-debug-nrf52-without-rtt</link><description>Hi. I&amp;#39;m quite new to nRF programming. I successfuly solved how to compile/link/flash the software onto nRF52 DK using just a simple editor (Notepad++), the ARM toolchain and makefile. 
 Now I&amp;#39;m trying to see some logging/debug info. I have found that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Mar 2018 07:23:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31949/how-to-debug-nrf52-without-rtt" /><item><title>RE: How to debug nRF52 without RTT?</title><link>https://devzone.nordicsemi.com/thread/123826?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 07:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea0ea458-c6f6-42a1-b7ec-28da06ecfee8</guid><dc:creator>Dusan Daniska</dc:creator><description>&lt;p&gt;I have played around with this yesterday and got it working. Hope this answer helps someone new to nRF programming...&lt;/p&gt;
&lt;p&gt;The&amp;nbsp; steps that I performed are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;install Putty Tray (I got some problems with old and good Putty when connecting to serial port)&lt;/li&gt;
&lt;li&gt;check the&amp;nbsp;NRF_LOG_BACKEND_UART_BAUDRATE in sdk_config.h&lt;/li&gt;
&lt;li&gt;connect&amp;nbsp;putty (yes, I mean Putty Tray) to serial port, use the baudrate from above and also check other UART connection params (parity, stop bit, control flow)&lt;/li&gt;
&lt;li&gt;put this code into main.c:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;nrf_log.h&amp;quot;
#include &amp;quot;nrf_log_ctrl.h&amp;quot;
#include &amp;quot;nrf_log_default_backends.h&amp;quot;

...

int main(void) {
  APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
  NRF_LOG_DEFAULT_BACKENDS_INIT();

  ...
  
  NRF_LOG_INFO(&amp;quot;Hello, UART debugging.&amp;quot;)
  
  ...
}&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;if using Makefile to compile/link the project, add following lines to Makefile (read the comments):&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# add these .c files to SRC_FILES

   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_rtt.c \
   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_serial.c \
   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_uart.c \
   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_default_backends.c \
   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_frontend.c \
   $(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_str_formatter.c \

# add these folders to INC_FOLDERS

  $(SDK_ROOT)/components/libraries/experimental_log \
  $(SDK_ROOT)/components/libraries/experimental_log/src \
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;compile/link/flash&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now you should see the logs in the putty terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug nRF52 without RTT?</title><link>https://devzone.nordicsemi.com/thread/123825?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 07:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:323a82a5-a224-47e2-bd2b-df7aac84850c</guid><dc:creator>Dusan Daniska</dc:creator><description>&lt;p&gt;I agree, but I&amp;#39;ve read some posts that RTT consumes much memory. Maybe it has been fixed already but I still believe that something as simple as UART is less hungry than some extensive 3rd party library. And I believe that debugging over UART is enough for many projects. Therefore I am trying to setup the UART debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug nRF52 without RTT?</title><link>https://devzone.nordicsemi.com/thread/123813?ContentTypeID=1</link><pubDate>Sun, 11 Mar 2018 21:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e4f5338-9a13-4e66-9e80-d80e3b4eea0f</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The NRF52 DK has the required j-link for RTT build-in. Its the same one uses to program the chip, and the RTT viewer should be installed together with the other SEGGER tools.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>