<?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>Debugging with nrf51 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24104/debugging-with-nrf51-dongle</link><description>I&amp;#39;m trying to see debugging info with nrf51 dongle.
As far as I can tell I just need to use: 
 #define NRF_LOG_MODULE_NAME &amp;quot;APP&amp;quot;
#include &amp;quot;nrf_log.h&amp;quot;
#include &amp;quot;nrf_log_ctrl.h&amp;quot; 
#define ENABLE_DEBUG_LOG_SUPPORT 1
 
 in setup and then the code: </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 12:05:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24104/debugging-with-nrf51-dongle" /><item><title>RE: Debugging with nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/296011?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 12:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:692fb998-6d86-4de4-8c0c-0d98e2a08c0d</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried replicating this method using my blinky demo and while I get not error messages and the leds are blinking like they should both my UART and RTT are silent?&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried setting the uart params:&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_SERIAL_USES_UART 1&lt;br /&gt;#define NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE 30924800&lt;br /&gt;#define NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL 0&lt;/p&gt;
&lt;p&gt;Also I have&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1&lt;/p&gt;
&lt;p&gt;but this doesn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m suspecting some j-tag configuration problem.&lt;/p&gt;
&lt;p&gt;Also, when I try to switch on the Trace option in my Keil uVision IDE the program won&amp;#39;t start in debug. It goes to blinking the greed led like crazy and when I stop the execution I can see it&amp;#39;s in the HARD_FAULT section.&lt;/p&gt;
&lt;p&gt;Please HELP! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging with nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/94898?ContentTypeID=1</link><pubDate>Sun, 06 Aug 2017 15:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a0ecd9b-643b-408b-a7b3-4dff3fba0f9f</guid><dc:creator>bojerko</dc:creator><description>&lt;p&gt;Perfect. Managed to get RTT working in SDK12 and SDK11.
Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging with nrf51 dongle</title><link>https://devzone.nordicsemi.com/thread/94897?ContentTypeID=1</link><pubDate>Sun, 06 Aug 2017 12:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247cbabc-a573-4b35-acad-19331aaa396d</guid><dc:creator>Turbo J</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;#define ENABLE_DEBUG_LOG_SUPPORT 1&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This #define comes waaaay too late. It should go into the sdk_config.h file.&lt;/p&gt;
&lt;p&gt;Note that NRF_LOG also supports SEGGER RTT mode, where no output would be sent to the UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>