<?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 Peripheral Dead?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25497/uart-peripheral-dead</link><description>I&amp;#39;ve been developing an application on the nrf51 DK based on the ble uart application and it&amp;#39;s been working fine. I&amp;#39;ve ported it to a custom board running at 1.8V and attached a 1.8V USB-UART adaptor to debug the UART output but after printing a few messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 17:38:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25497/uart-peripheral-dead" /><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100512?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 17:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3109f9-aa34-41b0-8c8a-6400c2d2646a</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I&amp;#39;m on the nRF51822 and 1.8V is working fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100511?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 16:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4afad7d-db22-4436-8eda-95506892b373</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;How about your original 1.8V test? Would it work now? I don&amp;#39;t know much about nRF51 but 1.8V may just be too &amp;quot;low&amp;quot; for nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100514?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 15:37:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed6e954-16c2-4dee-b213-918aeca7df24</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The UART errors are not defined in the header files as the usual NRF_ERROR_XXX... error codes in the SDKs are. They are read from the ERRORSCR register which is documented &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=2_1_0_34_9_4#register.ERRORSRC"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100513?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 15:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eece5a01-81d9-44be-8bcf-fc08a76c2c20</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I definitely had that floating. Thanks for explaining that. I&amp;#39;ve added the RX line now and it&amp;#39;s working with the error handlers added back in!&lt;/p&gt;
&lt;p&gt;Where are the error codes documented?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100510?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31a4ee5-bfc7-4978-ba28-eb8a902d9bba</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Have you connected the RX pin on the nRF52 to anything or is it floating? APP_UART_COMMUNICATION_ERRORs and error 4 indicates that the UART experiences an RX &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=2_1_0_34_9_4#register.ERRORSRC"&gt;framing error&lt;/a&gt;. This can happen if the RX pin is left unconnected and picking up random noise which the UART thinks is data. It is possible to set the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=2_1_0_34_9_9#register.PSEL.RXD"&gt;PSEL.RXD&lt;/a&gt; register to 0x80 to disconnect the pin from the UART logic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100507?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd62a8d4-31c6-4bcd-8c68-81470dd0a593</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you mean... it was calling APP_ERROR_HANDLER which I thought by default (not in DEBUG mode) just performed a system reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100505?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf4e904-3564-42da-bf90-146220eaa4db</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Commenting out the UART handler should not have made a difference since as you can see your UART handler did nothing for that error case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100503?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855bf595-968b-4962-93d7-7e7ae525d90f</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Updated original post with new findings&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100502?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 14:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b117c110-da09-4062-9c6f-c59566163ef8</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Hardware flow control has been disabled the whole time. The UART interface did send some data before starting this behaviour the first time it was powered, but I&amp;#39;m really not sure how the debugger could possibly cause this.&lt;/p&gt;
&lt;p&gt;I just tried with 3.3V and I&amp;#39;m still seeing the same behaviour&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100506?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 13:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39250c61-25ce-4f9d-8d89-ce684368abd2</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Or, as Nguyen mentioned above, does your custom board support the flow control signals at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100504?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 02:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25cc10b2-bf87-4b66-977e-9690054221e5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Did you enable flow control (RTS/CTS pins) ? If you do, check the CTS pin. It might the cause of uart stop transmitting.  Disable Flow control to see what happen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100508?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 21:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac87d5ae-0b3d-4b4d-89c3-33fd041581eb</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ll try that test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Peripheral Dead?</title><link>https://devzone.nordicsemi.com/thread/100509?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 20:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad220c8-cc4a-4c0a-9d8e-257ee1777804</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Any possibility to run the same test with 3.3V VDD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>