<?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>Question) Serial Output (UART)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68163/question-serial-output-uart</link><description>Hello, I would like to develop a simple program that sends and receives UART communication through 2 boards. 
 The example used &amp;quot;examples\peripheral\serial\pca10056\blank\sses\serial_pca10056.emProject.&amp;quot; 
 
 First, we set up the &amp;quot;Hello&amp;quot; and &amp;quot;World&amp;quot; sequence</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Nov 2020 19:34:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68163/question-serial-output-uart" /><item><title>RE: Question) Serial Output (UART)</title><link>https://devzone.nordicsemi.com/thread/279587?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 19:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c4733b-78ea-47d2-b683-831dbc9da723</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="LeeJooSang"]Currently, using &lt;strong&gt;NRF_LOG_INFO()&lt;/strong&gt; and &lt;strong&gt;printf()&lt;/strong&gt; at &lt;strong&gt;pca10056(nrf 52840)&lt;/strong&gt; does not output from &amp;#39;Tera term&amp;#39; or &amp;#39;putty&amp;#39;, so it is not possible to verify that the log is taken properly except for Debug mode.[/quote]
&lt;p&gt;Sounds like only the RTT backend is enabled for the logger module, and not the UART backend. Have a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf__log__config.html&amp;amp;anchor=gab2f7df0debb6697ce174069ce3c5f7f5"&gt;sdk_config.h options&lt;/a&gt; for how to enable UART backend.&amp;nbsp;&lt;/p&gt;
[quote user="LeeJooSang"]&lt;p&gt;I want log only to be printed from pca10056 but it is also delivered to the connected board, and the connected board contains the wrong command, and errors continue to occur.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently, pca10056(nrf 52840) is connected by &lt;strong&gt;PC and USB&lt;/strong&gt;, and other boards are connected by &lt;strong&gt;6pin(TX) and 8pin(RX)&lt;/strong&gt;. Are UART and 6,8pin UART of PCtoUSB the same?&lt;/p&gt;[/quote]
&lt;p&gt;By default, the UART logger backend uses GPIO P0.06 for the UART TX pin. This is connected through the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/vir_com_port.html?cp=4_0_4_6_1"&gt;Interface MCU on the DK&lt;/a&gt;, which handles the virtual USB COM port. I would recommend that you connect the external board through other pins. You should also make sure that you use UARTE1 instance for the nrf_serial library if you want to continue using UART(E)0 for the logger.&lt;/p&gt;
&lt;p&gt;Finally, note that the nrf_serial library is removed in nRF5 SDK v17.0.0 and above, instead we recommend using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_libuarte.html"&gt;libUARTE library&lt;/a&gt;. If you plan to migrate to later SDKs eventually, you should reconsider using nrf_serial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question) Serial Output (UART)</title><link>https://devzone.nordicsemi.com/thread/279381?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 02:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24ab8995-317f-42ce-8c15-6268cf42ba3e</guid><dc:creator>LeeJooSang</dc:creator><description>&lt;p&gt;Hi, J&amp;oslash;rgen Holmefjord.&lt;br /&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that I&amp;#39;m not good at English because I&amp;#39;m Korean.&lt;/p&gt;
&lt;p&gt;What I want is not to use the function &lt;strong&gt;&amp;#39;nrf_serial_write&amp;#39;&lt;/strong&gt; from the &lt;strong&gt;serial sdk&lt;/strong&gt;, but to print the log from &amp;#39;&lt;strong&gt;Tera term&amp;#39; or &amp;#39;putty&amp;#39;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Currently, using &lt;strong&gt;NRF_LOG_INFO()&lt;/strong&gt; and &lt;strong&gt;printf()&lt;/strong&gt; at &lt;strong&gt;pca10056(nrf 52840)&lt;/strong&gt; does not output from &amp;#39;Tera term&amp;#39; or &amp;#39;putty&amp;#39;, so it is not possible to verify that the log is taken properly except for Debug mode.&lt;/p&gt;
&lt;p&gt;However, using &amp;#39;&lt;strong&gt;nrf_serial_write&amp;#39;&lt;/strong&gt; it also passes to other connected boards and logs are printed on the &amp;#39;&lt;strong&gt;nordic&amp;#39; board.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I want log only to be printed from pca10056 but it is also delivered to the connected board, and the connected board contains the wrong command, and errors continue to occur.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently, pca10056(nrf 52840) is connected by &lt;strong&gt;PC and USB&lt;/strong&gt;, and other boards are connected by &lt;strong&gt;6pin(TX) and 8pin(RX)&lt;/strong&gt;. Are UART and 6,8pin UART of PCtoUSB the same?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/68163/question-serial-output-uart/279299#279299"]Not sure what you mean by this. Do you want a CLI?[/quote]
&lt;p&gt;I want to enter a command from the pca10056 board and send it to another board. Like &lt;strong&gt;zigbee_cli_agent&lt;/strong&gt;, for example.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question) Serial Output (UART)</title><link>https://devzone.nordicsemi.com/thread/279299?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 14:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38e8678-7513-4e52-b1a8-1eb63e4cc707</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not very familiar with Tera term, but you can try turning off the &lt;a href="https://learn.sparkfun.com/tutorials/terminal-basics/tera-term-windows"&gt;&amp;quot;local echo&amp;quot; feature&lt;/a&gt;&amp;nbsp;if that is enabled.&lt;/p&gt;
[quote user=""]Is there a way to write and send cammand in &amp;#39;&lt;strong&gt;Tera term&lt;/strong&gt;&amp;#39; or &amp;#39;&lt;strong&gt;putty&lt;/strong&gt;&amp;#39; instead of in debugging mode like cli-agent in zigbee?[/quote]
&lt;p&gt;Not sure what you mean by this. Do you want a CLI?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>