<?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 output on BLE Nano (Readbear)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23081/nrf_log-output-on-ble-nano-readbear</link><description>Hello, 
 I wanted to check the log on nRF52 example codes. Though the code compiles and runs (GCC compiler) I do not see the log anywhere. I tried connecting the device (MK20) as serial. The terminal opens up but nothing is seen in there. 
 Can someone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 08:45:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23081/nrf_log-output-on-ble-nano-readbear" /><item><title>RE: NRF_LOG output on BLE Nano (Readbear)</title><link>https://devzone.nordicsemi.com/thread/90816?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 08:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de1313db-e7bc-467d-9584-46f70333d542</guid><dc:creator>Shankar</dc:creator><description>&lt;p&gt;Hello Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks a lot for the answer. I will check this and update!&lt;/p&gt;
&lt;p&gt;Regards,
Shankar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_LOG output on BLE Nano (Readbear)</title><link>https://devzone.nordicsemi.com/thread/90815?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 09:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29893153-ceee-4325-8e96-0fb0d73fcaa1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to make sure NRF_LOG module is enabled and set to use UART as the backend. This is done is &lt;em&gt;sdk_config.h&lt;/em&gt;, by setting:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_LOG_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_LOG_BACKEND_SERIAL_USES_UART 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also make sure that you set &lt;code&gt;#define NRF_LOG_DEFERRED 0&lt;/code&gt;, or that you call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/nrf_log.html?cp=4_0_0_3_20_2_0#nrf_log_usage_control"&gt;&lt;code&gt;NRF_LOG_FLUSH()&lt;/code&gt; or &lt;code&gt;NRF_LOG_PROCESS()&lt;/code&gt;&lt;/a&gt; in you main loop to process the log queue.&lt;/p&gt;
&lt;p&gt;The UART pinouts for your board might not be the same as the one used for the nRF5x DK in the SDK. You should check the pinout on the schematics for your board and compare this towards the pins defined in &lt;em&gt;sdk_config.h&lt;/em&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_LOG_BACKEND_SERIAL_UART_TX_PIN 6
#define NRF_LOG_BACKEND_SERIAL_UART_RX_PIN 8
#define NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN 5
#define NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN 7
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>