<?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>nrf51822 + esp8266 uart/debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16706/nrf51822-esp8266-uart-debugging</link><description>As far as I understand the nrf51822 has only 1 hardware uart. I want to communicate with the esp8266 over uart using standard AT commands, but still retain debugging possibilities. What are my options here? Is it easy to set up a soft-uart for debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2016 07:32:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16706/nrf51822-esp8266-uart-debugging" /><item><title>RE: nrf51822 + esp8266 uart/debugging</title><link>https://devzone.nordicsemi.com/thread/63919?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 07:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd0005e-bbc0-412c-a5fb-5e94ee127e45</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Yes, the nRF51 has only one hardware UART. To retain debugging/logging possibilities I would use RTT.&lt;/p&gt;
&lt;p&gt;RTT has some advantages over UART when it comes to speed, where UART can affect the performance of your code because of overhead, RTT almost does not affect the perfomance. RTT also uses the debug interface so that you don&amp;#39;t need extra pins (very neat if you are debugging a custom made PCB where UART interface can be removed for size optimization).&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/nrf_log.html?cp=4_0_0_3_14"&gt;logger module&lt;/a&gt; in SDK 12 makes it easy to change between logging with UART and logging with RTT.&lt;/p&gt;
&lt;p&gt;To display the data you will have to use RTT viewer (terminal program for logging RTT data) or RTT client (sets up a telnet server) + a terminal that connect to the telnet server (for example putty).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>