<?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 error codes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61310/uart-error-codes</link><description>Hello, 
 
 I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_blinky’. 
 
 1) I ported UART into my code and it is working fine with FDMI / UART cable connected. When I don’t connect UART cable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 May 2020 07:13:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61310/uart-error-codes" /><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249476?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 07:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b97e31-a4a8-4af9-b186-f5b9fcdd0de8</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for confirmation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249475?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 06:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee8c75d-980b-4329-a812-fd6088627ae2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Yes correct, that&amp;#39;s a possibility.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249474?ContentTypeID=1</link><pubDate>Sun, 10 May 2020 15:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc0c9578-b245-4f66-ac29-140093766bd1</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Sorry for late response. I was busy with other project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For point 1, about floating pin, to my understanding, by default even if I don&amp;#39;t configure pin, it will be configured as Input and Disconnect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e9e4b758f51646f898464dde4e13cf30/pastedimage1589123145008v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e9e4b758f51646f898464dde4e13cf30/pastedimage1589123170095v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But issue here is, if pins are configured as UART and if that pins are not connected on other side, then pins will be floated and get unnecessary interrupts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please correct me if I am wrong in my understanding.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249473?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 12:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac35c425-7694-4e5d-beba-02a70d49cfb1</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes, a floating pin might trigger an interrupt as it floats. I would recommend setting the pin as input with the input buffer disconnected when the UART module isn&amp;#39;t enabled. Could you provide a trace of the UART pins while you run the application?&lt;/li&gt;
&lt;li&gt;It&amp;#39;s not a good idea because the error is never handled.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249472?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 13:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9f84ba-c028-462d-a646-d8684021e876</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below is my device high level architecture. Chip 1 is master and control power supply to nRF chip so that chip 1 can on/off nRF chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e9e4b758f51646f898464dde4e13cf30/pastedimage1580477576849v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned in my previous post, there are two scenarios.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Scenario 1) Only nRF chip will be active and chip 1 will be in low power mode. During this time nRF chip only will be active.&lt;/p&gt;
&lt;p&gt;Scenario 2) Both Chip1 and nRF will be powered so that there can be serial communications over uart and even during DFU / Image up gradation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So nRF chip does not know whether Chip 1 is active or not. So in both scenarios I need to enable UART driver.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) In Scenario 1 may be uart pins might be floating. But still why there are interrupts.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;a) Is this due to glitches on uart pins.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2) In what way it will not be a good practice to skip the error. Can you please give more details on this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If there are any other alternative approach, please suggest.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART error codes</title><link>https://devzone.nordicsemi.com/thread/249471?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 12:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e090177-405e-4c22-ab6c-8e3e07b3c237</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems that there is an interrupt firing as you go into the interrupt routine handler. Are the pins that you use for UART floating when nothing is connected?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]So to avoid this I did below modifications. Is this fine ?[/quote]
&lt;p&gt;Printing out an error message is ok during the development phase but I don&amp;#39;t think that it&amp;#39;s a good practice for recovery for a deployed product as it doesn&amp;#39;t recover the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>