<?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>NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50277/nrf52832-mesh-with-uart</link><description>want to add UART communication to nRF52832 with mesh enable. 
 I have added, 
 
 nrf_drv_uart.c 
 nrfc_prs.c 
 nrfc_uart.c 
 nrfc_uarte.c 
 
 files into nRF_Drivers folder in project and added User include directories for them and also I have added 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Mar 2020 08:00:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50277/nrf52832-mesh-with-uart" /><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/238718?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 08:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb29e069-5e3b-41dd-bfc8-4699f7edbcfb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Actually I never had this issue. Have you tried the suggestions that were mentioned?&lt;/p&gt;
&lt;p&gt;What HW do you use? And what baudrate (on both the nRF and the other end)? Are the RX and TX lines always connected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/238692?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 03:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dac0b45-c06a-445a-bee2-3ddd8677b28a</guid><dc:creator>BattleDroid</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;Were you able to overcome this problem? If so, how?&amp;nbsp; I believe I am seeing the same issue with UARTE0 on nRF52840&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/203565?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 11:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b2b2ee-968c-4d3c-be04-53c8285b0381</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you use baudrate = 9600 in the nRF Project as well?&lt;/p&gt;
&lt;p&gt;Can you try to use an analyzer to check that the values on the lines look OK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the UART device connected at all times?&lt;/p&gt;
&lt;p&gt;What is your LFCLK configurations in sdk_config.h? Are you using an nRF52832 DK? If not, do you have an external LFXTAL (32kHz), or do you use the RC Oscillator?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/203524?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 09:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86159ff4-951f-4760-8268-21be26c6a9e2</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;As you said my&amp;nbsp;&lt;span&gt;APP_COMMUNICATION_ERROR&amp;nbsp;error code is 4. So according to &amp;quot;nRF52832 Objective Product Specification&amp;quot; ERRORSRC register value is 0b0100. It mean It should be framing error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In my case RX pin isn&amp;#39;t in floating and it&amp;#39;s baud rate is 9600 and other MCU also send data in that baud rate.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried different methods to overcome this issue, increased buffer size, enable internal pullups but nothing work for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So do you have any suggestion for this issue ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/200976?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 13:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53337837-7c3f-4a16-bdde-789a7d78697c</guid><dc:creator>Edvin</dc:creator><description>[quote user="Prasad Anuruddhike"]&lt;strong&gt;NRF_MESH_IRQ_PRIORITY_LOWEST&amp;nbsp;&lt;/strong&gt;in&amp;nbsp;&lt;strong&gt;APP_UART_FIFO_INIT&amp;nbsp;&lt;/strong&gt; instead of&amp;nbsp;&lt;strong&gt;APP_IRQ_PRIORITY_LOWEST&amp;nbsp;&lt;/strong&gt;but that won&amp;#39;t work for me.[/quote]
&lt;p&gt;&amp;nbsp;why is that?&lt;/p&gt;
&lt;p&gt;What do you do in main after Communication ERROR? Do you pass this err_code into the error handler? What is the error value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/200889?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 07:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81898103-c1b9-4922-b09a-c49d2823614e</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for your advice. I manage to overcome that error.&amp;nbsp;As you said it occurs due to incorrect data receive from other side.&amp;nbsp;When opening the port from other side there is a junk data packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m able to read data through serial. But when data receive continuously I got&amp;nbsp;&lt;strong&gt;APP_UART_COMMUNICATION_ERROR&amp;nbsp;&lt;/strong&gt;again. But this time it has random pattern.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;t:     678274&amp;gt;, main.c,  242, Receive 55 
&amp;lt;t:     678276&amp;gt;, main.c,  242, Receive AA 
&amp;lt;t:     678278&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     678280&amp;gt;, main.c,  242, Receive 7 
&amp;lt;t:     678282&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     678284&amp;gt;, main.c,  242, Receive 5 
&amp;lt;t:     678286&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     678288&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     678289&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     678291&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     678293&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     678295&amp;gt;, main.c,  242, Receive F 
&amp;lt;t:     696344&amp;gt;, main.c,  242, Receive 55 
&amp;lt;t:     696346&amp;gt;, main.c,  242, Receive AA 
&amp;lt;t:     696348&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     696350&amp;gt;, main.c,  242, Receive 7 
&amp;lt;t:     696352&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     696354&amp;gt;, main.c,  242, Receive 5 
&amp;lt;t:     696356&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     696358&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     696360&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     696362&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     696364&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     696366&amp;gt;, main.c,  242, Receive 10 
&amp;lt;t:     714118&amp;gt;, main.c,  242, Receive 55 
&amp;lt;t:     714120&amp;gt;, main.c,  242, Receive AA 
&amp;lt;t:     714122&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     714124&amp;gt;, main.c,  242, Receive 7 
&amp;lt;t:     714126&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     714128&amp;gt;, main.c,  242, Receive 5 
&amp;lt;t:     714130&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     714132&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     714134&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     714136&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     714137&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     714139&amp;gt;, main.c,  242, Receive F 
&amp;lt;t:     732787&amp;gt;, main.c,  242, Receive 55 
&amp;lt;t:     732789&amp;gt;, main.c,  242, Receive AA 
&amp;lt;t:     732791&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     732793&amp;gt;, main.c,  242, Receive 7 
&amp;lt;t:     732795&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     732797&amp;gt;, main.c,  242, Receive 5 
&amp;lt;t:     732799&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     732800&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     732802&amp;gt;, main.c,  242, Receive 0 
&amp;lt;t:     732804&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     732806&amp;gt;, main.c,  242, Receive 1 
&amp;lt;t:     732808&amp;gt;, main.c,  242, Receive 10 
&amp;lt;t:     752258&amp;gt;, main.c,  361, Communication ERROR
&amp;lt;t:     752261&amp;gt;, app_error_weak.c,  119, Mesh error 1 at 0x00000000 (:0)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One of my friends suggested to set &lt;strong&gt;NRF_MESH_IRQ_PRIORITY_LOWEST&amp;nbsp;&lt;/strong&gt;in&amp;nbsp;&lt;strong&gt;APP_UART_FIFO_INIT&amp;nbsp;&lt;/strong&gt; instead of&amp;nbsp;&lt;strong&gt;APP_IRQ_PRIORITY_LOWEST&amp;nbsp;&lt;/strong&gt;but that won&amp;#39;t work for me. Is there any suggestions for overcome this issue ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       NRF_MESH_IRQ_PRIORITY_LOWEST,    //APP_IRQ_PRIORITY_LOWEST,     
                       err_code);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 MESH with UART</title><link>https://devzone.nordicsemi.com/thread/200685?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 08:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fbd6e29-7c06-49d1-ac1a-791ec9d13351</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The APP_COMMUNICATION_ERROR event tells you that there is something weird&amp;nbsp;happening on the UART. If this event has the value 4, it means that the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fuart.html&amp;amp;cp=3_1_0_49_9_3&amp;amp;anchor=register.ERRORSRC" rel="noopener noreferrer" target="_blank"&gt;ERRORSRC register&lt;/a&gt; in the UART has the value 0b0100.&lt;/p&gt;
&lt;p&gt;If you look in the link it means &amp;quot;Framing error&amp;quot;. This is an error you typically get if you either haven&amp;#39;t connected the RX pin to anything (It is floating), or that you use the incorrect baud rate. It basically tells you that it has detected movement on the pin, but it doesn&amp;#39;t make up an entire byte with the given baudrate.&lt;/p&gt;
&lt;p&gt;So is your RX pin connected or floating? And do you use the same baudrate as the device you are connected to?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>