<?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>UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36843/uart-example-problem-when-changing-pins</link><description>Using the UART example of the 52DK with the TX and RX pins set as 8 and 6 the example works. If I try to change the pins to different pins such as 22 and 23, it does not work by giving an UART Comm Error. Problem is reported from the UART ISR.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 02 Apr 2022 03:46:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36843/uart-example-problem-when-changing-pins" /><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/361312?ContentTypeID=1</link><pubDate>Sat, 02 Apr 2022 03:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd5bd33-1b6c-4c53-86ca-5dd20573cecb</guid><dc:creator>steelman.kwon</dc:creator><description>&lt;p&gt;I have the same problem.&lt;br /&gt;I am using IAR.&lt;br /&gt;If the problem was solved by changing the IDE, it seems to be solved by the IDE settings. Which setting is it?&lt;/p&gt;
&lt;p&gt;Please give me a good advice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/164615?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 07:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5108b35-fd75-4f61-8a76-00ec49a8763d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/martabc_5f00_96"&gt;martabc_96&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Maybe you could post a new question about this?&lt;br /&gt;Please explain in detail your setup etc.&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br /&gt;Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/164349?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 16:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4465ac99-fd3c-4859-beed-c8e8daabc19f</guid><dc:creator>martabc_96</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m having exactly the same issue. Running the examples/peripheral/uart example it works fine with pins 6 and 8 from port 0 in PCA10056 board. But when I change the pin to a free pin there is no communication. I&amp;#39;m using SES. Should I try another IDE?&amp;nbsp;Am I missing any other change&amp;nbsp;in&amp;nbsp;the code, apart from the definition of&amp;nbsp;RX_PIN_NUMBER and TX_PIN_NUMBER in pca10056.h?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/143220?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 12:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f300ba5d-cc4e-404b-bc60-b20e7e5a2303</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;It worked fine when I tested it using SES. I&amp;#39;ll do some tests using Keil and see what I can find out.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/143218?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 12:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca845f9c-0d3c-4647-ac4b-47cc88a7f31f</guid><dc:creator>TK Here</dc:creator><description>&lt;p&gt;I was using Keil.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/143207?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 11:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:624ff893-aca3-4958-bab0-4e66c1748454</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I&amp;#39;m glad you were able to &amp;quot;solve&amp;quot; the issue.&lt;/p&gt;
&lt;p&gt;Could you tell me which IDE you were using when you got the error?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/142820?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 12:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f542d0-b592-479c-91c1-cf6aac02d7e3</guid><dc:creator>TK Here</dc:creator><description>&lt;p&gt;I changed to IAR and works fine.&amp;nbsp; So I am good.&amp;nbsp; Thanks for the support from everyone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/142773?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 10:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58dd7453-2c4c-469e-accf-f48fa052203b</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;That sounds strange. I tried using pins 22/23 and I don&amp;#39;t have any problems.&lt;/p&gt;
&lt;p&gt;Are you using the ble_peripheral/ble_app_uart or the peripheral/uart example? And which SDK version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/142448?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 14:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5425dd5-26d3-4f6e-9c7e-f85fc83e6cb8</guid><dc:creator>TK Here</dc:creator><description>&lt;p&gt;I am using uart_pca10040.&amp;nbsp; I do not see where pins 22 and 23 are being used.&amp;nbsp; Can you be more specific?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/142243?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 15:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c54f5388-fb22-4701-9ce1-03bde7507d48</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Which example are you using?&amp;nbsp; If you look at the board support file, pca10040.h, you will see that pins 22 and 23 are defined for different peripherals.&amp;nbsp; Is it possible that the example you are using is redefining those pins when another peripheral gets enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/141955?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfe9f7ed-a7c8-4f47-b0be-d100905743dc</guid><dc:creator>TK Here</dc:creator><description>&lt;p&gt;Connects perfectly with cable to terminal emulator with pins 8 and 6.&amp;nbsp; Changing RX_PIN_NUMBER and TX_PIN_NUMBER and moving the wiring, it does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/141954?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 13:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa703744-dfdb-4e45-bd9d-70f2d9420b38</guid><dc:creator>TK Here</dc:creator><description>&lt;p&gt;PCA10040 1.2.1 2017.45&lt;/p&gt;
&lt;p&gt;Yes, pins should be free&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/141840?ContentTypeID=1</link><pubDate>Mon, 30 Jul 2018 08:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bb31599-e238-41f5-ba6a-9a85f4c57a59</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Why do you change the TX/RX pin? Do you connect it to something else? &lt;br /&gt;If you connect it to something else, do you also connect the other device to ground?&lt;/p&gt;
&lt;p&gt;If you just change the pin number, but don&amp;#39;t connect anything to it, it will be left floating in the wind and will pick up noise. The UART will then believe that the noise is actual data, but not be able to make sense of it. Then it generates a Communication error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Example Problem when changing pins</title><link>https://devzone.nordicsemi.com/thread/141429?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 22:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f58759-f103-40be-9de5-216ef81c0d48</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/tk-here"&gt;TK Here&lt;/a&gt; Which version of the 52DK are you using?&amp;nbsp; Is it the nRF52832(PCA10040) or the nRF52840 (PCA10056)?&amp;nbsp; Have you checked to see if those pins are available on the DK by reviewing DK hardware files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>