<?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>How to change the debug UART from UART1 to 2nd UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14870/how-to-change-the-debug-uart-from-uart1-to-2nd-uart</link><description>Hello 
 I need a second UART, one for adebug long on the PC and the other for communication with another device. 
 My application is based on NRF51822 which has single UART available. 
 So, I want to use an I2C-to-UART bridge chip as 2nd UART for debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Apr 2018 21:20:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14870/how-to-change-the-debug-uart-from-uart1-to-2nd-uart" /><item><title>RE: How to change the debug UART from UART1 to 2nd UART</title><link>https://devzone.nordicsemi.com/thread/126541?ContentTypeID=1</link><pubDate>Mon, 02 Apr 2018 21:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca256342-b4ff-4581-ae49-797361e7fb43</guid><dc:creator>Mrespin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did research but unable to find how to set 2&amp;nbsp;pinsets&amp;nbsp;and swap&amp;nbsp;over. Would&amp;nbsp;you please explain how to do it? Can same be done for different peripherals, as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the debug UART from UART1 to 2nd UART</title><link>https://devzone.nordicsemi.com/thread/56763?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 15:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:210f5ec5-0f75-4f93-8dfa-76460046e710</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As you already pointed out, there is only one UART peripheral on the nRF51. It is however still possible to use UART for two different pinsets, just by simply configure the UART peripheral for one pin set, perform the UART communication, then configure the UART for the other pin set and carry out that UART communication. This will of course have certain overhead when always reconfiguring the UART for each transfer, which will limit the UART overall throughput and require more CPU time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the debug UART from UART1 to 2nd UART</title><link>https://devzone.nordicsemi.com/thread/56762?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 15:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac00f8c-dd76-4c0c-8055-f3dd2dfd3f7c</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@sjkim   To further support shibshab&amp;#39;s answer, there is also &lt;a href="https://devzone.nordicsemi.com/tutorials/6/"&gt;Nordic made guide here&lt;/a&gt; on how to set up RTT for nRF51&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the debug UART from UART1 to 2nd UART</title><link>https://devzone.nordicsemi.com/thread/56761?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 11:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a08119c-5462-4707-994f-6da4e6dbe3ef</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Not a direct answer to your question, but it might fix your problem:
For debugging purposes you can use &lt;a href="https://www.segger.com/jlink-rtt.html"&gt;Segger RTT&lt;/a&gt; which will allow you to get debugging info on a PC (using RTT Viewer) whilst communicating with another device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>