<?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>Changing default UART0 pins makes console print gibberish</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62511/changing-default-uart0-pins-makes-console-print-gibberish</link><description>I would like to print debug messages to a PuTTY console. With the evaluation kit, this is very easy. It is connected to my PC via a USB cable, and I listen to one of the virtual com ports that is intended for the UART communication. It works. 
 Now for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2020 12:40:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62511/changing-default-uart0-pins-makes-console-print-gibberish" /><item><title>RE: Changing default UART0 pins makes console print gibberish</title><link>https://devzone.nordicsemi.com/thread/254734?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 12:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06bc91d7-f8ad-41df-942e-92d0e8fb6d25</guid><dc:creator>newUser</dc:creator><description>&lt;p&gt;This thread can be marked as resolved. A faulty connector was causing the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing default UART0 pins makes console print gibberish</title><link>https://devzone.nordicsemi.com/thread/254656?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 10:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7408432-b97b-416a-a42d-2d66689f677b</guid><dc:creator>newUser</dc:creator><description>&lt;p&gt;Hi again H&amp;aring;kon,&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/62511/changing-default-uart0-pins-makes-console-print-gibberish/254650"]Which UARTx interface are you using? I assume UARTE0, but have to ask.[/quote]
&lt;p&gt;Yes, I am using UART0. I did not change the configurations in this regard. In short:&lt;br /&gt;- I copied the board folder of the nRF9160DK&lt;br /&gt;- Changed the file names and references&lt;br /&gt;- Changed the UART0 TX and RX pins in the common.dts file&lt;br /&gt;- Remapped some GPIO pins&lt;/p&gt;
&lt;p&gt;So for example, I did not change the console to UART0 mapping.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/62511/changing-default-uart0-pins-makes-console-print-gibberish/254650"]Which pins are being used, and have you checked if anything else in your system is trying to use the same pins?[/quote]
&lt;p&gt;I am using TX pin 27. I have done a in-file search through the whole board folder and my .c file, and I did not find any other hits for this pin.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/62511/changing-default-uart0-pins-makes-console-print-gibberish/254650"]Is it printing only jibberish, or is it &amp;quot;a bit off&amp;quot;?[/quote]
&lt;p&gt;It is truely jibberish. The actual output is &amp;quot;▒▒▒Q▒▒57▒▒&amp;quot;, but I would expect &amp;quot;Button pressed&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing default UART0 pins makes console print gibberish</title><link>https://devzone.nordicsemi.com/thread/254650?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 09:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd570ec2-6b28-4a41-94b7-b48cab90d924</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which UARTx interface are you using? I assume UARTE0, but have to ask.&lt;/p&gt;
&lt;p&gt;Which pins are being used, and have you checked if anything else in your system is trying to use the same pins?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it printing only jibberish, or is it &amp;quot;a bit off&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>