<?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>Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52866/having-trouble-using-nrf-log-and-uart-to-receive-using-com-port</link><description>Hello 
 I need urgent help. From days I have been stuck exploring NRF SDK 15.0 to do a simple task. 
 I am using an NRF DK board PCA10040. After going through peripheral drivers and several documentation I wanted to simply set up UART port to send and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Oct 2019 06:37:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52866/having-trouble-using-nrf-log-and-uart-to-receive-using-com-port" /><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/214953?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 06:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8614eb7f-11bc-42e3-ba6e-ecbe3cb3775b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ali,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I have been out of the office in the past days.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is your based example to import the&amp;nbsp;&lt;span&gt;serial port library?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please see the&amp;nbsp;&lt;a title="Serial port library" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_serial.html?cp=5_5_1_3_39"&gt;Serial port library&lt;/a&gt;&amp;nbsp;document&amp;nbsp;as you require.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/214151?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 11:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c2d9689-816f-4f8e-b0a9-5f105517b919</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;However I have one more question&lt;/p&gt;
&lt;p&gt;While integrating serial port library and examples I found out that the example is configured by default on interrupt mode but the code is not interrupt based (UART Rx interrupt for example)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please guide me through the steps to set up and use interrupts in serial example for UART receiving data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance Amanda&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/214148?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 11:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f16c0229-a805-4495-b283-cf211cf4d7b8</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;I added serial port library due to variety of modes and functions&lt;/p&gt;
&lt;p&gt;I realized by myself that to incorporate modules together one has to modify by adding or deleting features in SDK and then add source files and paths for an error free project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It took me countless hours to do that I think you guys should document this procedure with examples as well.&lt;/p&gt;
&lt;p&gt;The SDK is a very useful tool but can be confusing if not guided properly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/213639?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f566fee3-bd37-46f0-a2d3-71424c01662a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__app__uart.html?cp=5_5_1_6_11_57"&gt;app_uart&lt;/a&gt; library to receive strings, then do tasks in the uart_handler. Please&amp;nbsp;study the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/nrf_dev_saadc_example.html"&gt;SAADC Example&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/uart_example.html"&gt;UART Example&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/213412?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 12:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c21ba96-d5a1-4384-b447-448b6c5701df</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;Thanks your your response&lt;/p&gt;
&lt;p&gt;There is no error message in SAADC example.&lt;/p&gt;
&lt;p&gt;Allow me to re phrase&lt;/p&gt;
&lt;p&gt;I simply want to receive data in SAADC example via using NRF log backend as UART.&lt;/p&gt;
&lt;p&gt;I have the macros enabled which you have mentioned as I have gone through countless examples and SDK exploration.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please tell me if it&amp;#39;s possible to receive data via NRF_LOG using UART as backend.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s say I want to trigger SAADC example using a serial character. How do I detect or read UART input via NRF_LOG?&lt;/p&gt;
&lt;p&gt;During my exploration I have found out that it&amp;#39;s not possible to receive via UART in NRF_LOG because RX pin is not mapped in SDK and internal drivers of NRF Log Backend.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Considering my SAADC trigger use case via serial, please tell me how to approach this issue, keeping in mind that I want to use all SAADC services such has event handler which are used in these examples&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/213401?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 11:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c87d972-5687-4556-a07e-dba3065290f4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Muhammad,&amp;nbsp;&lt;/p&gt;
[quote user="AliMahmood123"]I found out nrf serial example where receiving and sending is also possible but its not integrating with SAADC even after adding changes for SAADC in sdkconfig.h[/quote]
&lt;p&gt;Here is the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf_dev_saadc_example.html"&gt;SAADC Example&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the error message?&lt;/p&gt;
[quote user="AliMahmood123"]If you could just tell me how to receive data / strings on nrf_log it&amp;#39;ll be easier for me.[/quote]
&lt;p&gt;&lt;span&gt;Search for &amp;quot;NRF_LOG_BACKEND&amp;quot; in sdk_config.h. There are two possible defines there. UART or RTT, and they are set to either 0 or 1. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If &lt;span&gt;NRF_LOG_BACKEND_UART_ENABLED is enabled&lt;/span&gt;, it should be printed over the UART, which is picked up by the programming chip on the DK, and you can view it using e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.compuphase.com/software_termite.htm" rel="noopener noreferrer" target="_blank"&gt;Termite&lt;/a&gt;, or Putty.&lt;/p&gt;
&lt;p&gt;If &lt;span&gt;NRF_LOG_BACKEND_RTT_ENABLED is enabled&lt;/span&gt;, then you can &lt;span&gt;see the log with the Segger debugger and&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/" rel="noopener noreferrer" target="_blank"&gt;JLink RTT Viewer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;-Amanda H&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble using NRF log and UART to receive using COM Port</title><link>https://devzone.nordicsemi.com/thread/213257?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 17:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc5d525-d33a-490d-8dcf-1ce6b9e38195</guid><dc:creator>AliMahmood123</dc:creator><description>&lt;p&gt;Also, I found out nrf serial example where receiving and sending is also possible but its not integrating with SAADC even after adding changes for SAADC in sdkconfig.h&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please make these examples relatable to each other and help us out in doing that&lt;/p&gt;
&lt;p&gt;If you could just tell me how to receive data / strings on nrf_log it&amp;#39;ll be easier for me.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>