<?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>Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49177/confused-with-the-pins-assigned-to-nrf_log_info-and-printf</link><description>Hello, 
 
 I am using nRF52832 DK PCA10040 v1.2.4, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image. I am using ‘ble_app_blinky’. 
 
 I have very basic query. 
 
 1) In block diagram I am seeing only one UART . This can be enabled with or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jul 2019 08:55:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49177/confused-with-the-pins-assigned-to-nrf_log_info-and-printf" /><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195559?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 08:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f84eab-4047-4a85-9aca-5dc7a4a9089f</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Now I got better clarity. Thank a lot for your inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195558?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 08:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2292a2d-87ef-4049-bb2f-842a7f287ab3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. Please read &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;more on RTT here&lt;/a&gt;, as it is a SEGGER proprietary technology. RTT uses the debug channel for communication, so it won&amp;#39;t interfere with the UART peripheral.&lt;/p&gt;
&lt;p&gt;2. Correct.&lt;/p&gt;
&lt;p&gt;3. This is not a question. The link you provided explains how to configure the NRF_LOG modules.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195557?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 13:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77133e6b-ad32-4c14-b508-2eca6615daee</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I am able to print using my custom board. I have further queries.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) I got your point with respect to ‘ble_app_blinky’. Trying to understanding your statement “Applications using UART for serial communication can use the RTT (NRF_LOG_BACKEND_RTT_ENABLED) for debugging output” better. Assume in case ble_app_uart, serial communication uses UART and debug prints are configured to use over RTT.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;a) If Serial communications uses UART then what peripheral is used to communicate to RTT.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;b) Whether RTT uses UART or some other peripheral to communicate RTT viewer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Whether “Debug Terminal” within Segger IDE is same as RTT viewer. For &amp;quot;Debug Terminal&amp;quot; I don&amp;#39;t think UART is required.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) I have gone through below link, but I could not find much details about “Log UART backend” and “Log RTT backend”.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fgroup__nrf__log.html&amp;amp;resultof=%22%4e%52%46%5f%4c%4f%47%5f%49%4e%46%4f%22%20"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fgroup__nrf__log.html&amp;amp;resultof=%22%4e%52%46%5f%4c%4f%47%5f%49%4e%46%4f%22%20&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please correct me if I am wrong in above understanding.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195556?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 12:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da73032-9a68-40bb-bdc7-de2a310c54a1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Vishnu&lt;/p&gt;
&lt;p&gt;2. Applications using UART for serial communication can use the RTT (NRF_LOG_BACKEND_RTT_ENABLED) for debugging output, but the blinky example uses BACKEND_UART as it doesn&amp;#39;t use the UART for anything else.&lt;/p&gt;
&lt;p&gt;3. You don&amp;#39;t see the NRF_LOG_INFO outputs as they are configured to be output by the RTT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps to clarify things for you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195555?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 09:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0dc6f35-ed2c-4b41-adf2-bb887a3680b8</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your inputs.&lt;/p&gt;
&lt;p&gt;Yes I am trying to implement on my custom board and as you mentioned I changed&amp;nbsp;&lt;span&gt;NRF_LOG_BACKEND_UART_TX_PIN to my required pin and worked fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But to get better clarity, please let me know your inputs. Below queries are on Development kit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2) If there is only one UART, then how to print debug prints and at the same time use UART to communicate with other device (Serial communications).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) If I load ‘ble_app_uart’ example as is into Development kit I am seeing only debug prints in printf() but not in NRF_LOG_INFO(). If both use same UART why debug prints in NRF_LOG_INFO() are not printing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195554?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 08:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c3c20b7-b951-4c03-9bed-58ca587c4427</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Vishnu&lt;/p&gt;
&lt;p&gt;My bad. Seems like I misunderstood a few things in your inquiry. What you want, is to debug your custom board, am I right? I assumed you were struggling to print the ble_app_uart data from the pins on your external chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The NRF_LOG_INFO prints from ble_app_blinky are printed by NRF_LOG_BACKEND_UART, so you change the pin by setting NRF_LOG_BACKEND_UART_TX_PIN to what the output pin from your external board.&lt;/p&gt;
&lt;p&gt;You could also take a look at the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.pdf"&gt;nRF52DK&lt;/a&gt; user guide to see how to debug an external board using your DK.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195553?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 13:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab57004-2a37-43d3-8769-72ec887ab248</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi Simo,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, still I am confused.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) In ble_app_blinky how to change UART pins without changing pca10040.h file. In this example there is no ‘comm_params’ as in ‘uart’ example.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) If there is only one UART, then how to print debug prints and at the same time use UART to communicate with other device (Serial communications).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) If I load ‘ble_app_uart’ example as is into Development kit I am seeing only debug prints in printf() but not in NRF_LOG_INFO(). If both use same UART why debug prints in NRF_LOG_INFO() are not printing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused with the pins assigned to NRF_LOG_INFO() and printf()</title><link>https://devzone.nordicsemi.com/thread/195552?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 12:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e8b566-afef-4c60-8f02-6911de110169</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Vishnu&lt;/p&gt;
&lt;p&gt;1. This is correct!&lt;/p&gt;
&lt;p&gt;2. You should not make any changes in pca10040.h. Please leave all the pca100xx.h files the way they were when you downloaded the SDK. If you want to change the pins for UART, please configure this in the uart_init function by replacing the RX, TX, RTS, and CTS_PIN_NUMBERs with the values you want.&lt;/p&gt;
&lt;p&gt;Yes, NRF_LOG_INFO uses UART to communicate with the terminal. The rest of your questions should be solved by configuring the UART pins correctly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>