<?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 resolve the error &amp;quot; NRF_ERROR_NO_MEM  &amp;quot;  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40697/how-to-resolve-the-error-nrf_error_no_mem-at-the-case-app_uart_communication_error-in-uart_event_handle</link><description>Dear all, 
 I defined &amp;quot;DEBUG&amp;quot; , used UART peripheral and &amp;quot;printf()&amp;quot; in the example &amp;quot;ble_app_uart&amp;quot; based nRF5_SDK_15.2.0_9412b96. I find nRF52832 always dead in the place at the case &amp;quot;APP_UART_COMMUNICATION_ERROR&amp;quot; in &amp;quot;uart_event_handle( )&amp;quot; when I do not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jan 2019 08:08:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40697/how-to-resolve-the-error-nrf_error_no_mem-at-the-case-app_uart_communication_error-in-uart_event_handle" /><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/164432?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 08:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dabe95c0-230c-4746-bf42-0fed255eceef</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If it&amp;#39;s the &lt;strong&gt;same&lt;/strong&gt; issue, then it will be resolved in the &lt;strong&gt;same&lt;/strong&gt; was as already described.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/164402?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 03:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdb64b1-d602-4959-b134-3a8099b55943</guid><dc:creator>Unia Kuo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve encountered the same issue when I using the PCA10040.&amp;nbsp;I&amp;nbsp;found that RX can receive normally on &lt;span&gt;P0.08. How to solved this issue?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/161678?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 13:14:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d64487ce-c7b0-4606-b527-cec6674b8d61</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Another one today:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41480/multiperipheral-nus-crashes/161677#161677"&gt;devzone.nordicsemi.com/.../161677&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/161157?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 10:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb106cb-884e-49fd-89ac-c069bb42426f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I agree with you. I&amp;#39;ve reported it to the SDK team as a bug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/160847?ContentTypeID=1</link><pubDate>Sun, 09 Dec 2018 10:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d93df33-ac99-48c2-87e5-f0080bd90878</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/hkn"&gt;H&amp;aring;kon Alseth&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;- but why is the error reported as &amp;quot;NRF_ERROR_NO_MEM&amp;quot; ?&lt;/p&gt;
&lt;p&gt;That&amp;#39;s clearly nonsense and very misleading!&lt;/p&gt;
&lt;p&gt;Please can this be fixed to at least give a relevant error - preferably not a fatal error at all (see below).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/160765?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 14:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01a5bf1c-3433-46dc-97b1-eff5d5bc68ed</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Here&amp;#39;s what I did:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        /**@snippet [Handling data from UART] */
        case APP_UART_COMMUNICATION_ERROR:
            NRF_LOG_ERROR(&amp;quot;Communication error occurred while handling UART: %08X&amp;quot;, p_event-&amp;gt;data.error_communication );
            if( p_event-&amp;gt;data.error_communication &amp;amp; UART_ERRORSRC_BREAK_Msk )
            {
                NRF_LOG_ERROR(&amp;quot;   Break&amp;quot;);
            }
            if( p_event-&amp;gt;data.error_communication &amp;amp; UART_ERRORSRC_FRAMING_Msk )
            {
                NRF_LOG_ERROR(&amp;quot;   Framing&amp;quot;);
            }
            if( p_event-&amp;gt;data.error_communication &amp;amp; UART_ERRORSRC_PARITY_Msk )
            {
                NRF_LOG_ERROR(&amp;quot;   Parity&amp;quot;);
            }
            if( p_event-&amp;gt;data.error_communication &amp;amp; UART_ERRORSRC_OVERRUN_Msk )
            {
                NRF_LOG_ERROR(&amp;quot;   Overrun&amp;quot;);
            }
            
            // ### Ignore: APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);
            break;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that you really don&amp;#39;t want to call&amp;nbsp;APP_ERROR_HANDLER on this kind of error!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/158307?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 07:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897369f6-a104-45c0-889d-a79a8903f373</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="tianfei00"]Whether one of methods which&amp;nbsp;&lt;span&gt;adding a pull-up resistor to the GPIO set as RXD in external circuit by myself or configuring&amp;nbsp;&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[RXD_PIN] |=3&amp;lt;&amp;lt;2&amp;quot; is correct ?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Both will work just fine. The easiest would be to add a pull-up in firmware, as it&amp;#39;s only one line after your UART initialization.&lt;/p&gt;
&lt;p&gt;&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><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/158280?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 02:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e1dce1-e6b8-45ab-9c86-a9af4f8b1a5f</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;Dear&amp;nbsp;&amp;nbsp;H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Firstly, thanks very much for your kind help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I used P0.08 as RXD. Everytime program die the RXD pin is always floating.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Whether one of methods which&amp;nbsp;&lt;span&gt;adding a pull-up resistor to the GPIO set as RXD in external circuit by myself or configuring&amp;nbsp;&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[RXD_PIN] |=3&amp;lt;&amp;lt;2&amp;quot; is correct ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; tianfei&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve the error " NRF_ERROR_NO_MEM  "  at the case APP_UART_COMMUNICATION_ERROR in uart_event_handle( ) ?</title><link>https://devzone.nordicsemi.com/thread/158207?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 14:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91386e6f-ce20-4cfc-a831-40e8ced80376</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;The content of this error is the &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;ERRORSRC&lt;/a&gt; register, where 4 indicates &amp;quot;FRAMING&amp;quot; error. This is because there&amp;#39;s no stop bit detected externally.&lt;/p&gt;
&lt;p&gt;What pins are you using? Is the specific pin floating, or grounded?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a similar case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25497/uart-peripheral-dead"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/25497/uart-peripheral-dead&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try adding a pull-up resistor to the GPIO set as RXD? This is done in NRF_GPIO-&amp;gt;PIN_CNF[RXD_PIN], field &amp;quot;PULL&amp;quot;.&lt;/p&gt;
&lt;p&gt;&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>