<?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>NRF UART RX done event only fires once</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47976/nrf-uart-rx-done-event-only-fires-once</link><description>I&amp;#39;m trying to communicate between two devices (nrf52840 and teensy 3.6) over RS485, but I&amp;#39;m having some issues using the UART library in the SDK. I&amp;#39;m trying to create an interrupt-based response to a packet received over the 485 line, so I&amp;#39;ve taken the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2019 15:48:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47976/nrf-uart-rx-done-event-only-fires-once" /><item><title>RE: NRF UART RX done event only fires once</title><link>https://devzone.nordicsemi.com/thread/191700?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 15:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1fbab9-fea4-4cbc-8fa6-295f41b98ee2</guid><dc:creator>thomac97</dc:creator><description>&lt;p&gt;So I found I rogue printf() in the UART ISR...upon removing the issue appears to be fixed. Apologies, I knew it would be something stupid. Thanks anyway&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF UART RX done event only fires once</title><link>https://devzone.nordicsemi.com/thread/191694?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 15:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5d58b18-d843-4d1e-b954-9185df7afd4a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you please provide the state of the registers in the UART(E) peripheral when this issue occurs? Do you get any errors in the event_handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF UART RX done event only fires once</title><link>https://devzone.nordicsemi.com/thread/190547?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 13:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26f1aa59-a135-45dc-8e86-a4c71b259302</guid><dc:creator>thomac97</dc:creator><description>&lt;p&gt;Hey Jorgen thanks for the reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not currently writing or reading anything on the UART because I&amp;#39;ve been trying to debug this issue.&lt;/p&gt;
&lt;p&gt;The Teensy I&amp;#39;m trying to communicate with is sending up to 1000 bytes (under normal conditions its at lot less, usually between 15 and 100 bytes) at 9600 baud. I&amp;#39;ve discovered that if I reduce the packet size being sent by the Teensy to 7 bytes or less with the&amp;nbsp;SERIAL_BUFF_RX_SIZE defined as 1, the RX_DATA event works as expected. However if the packet is any larger, I get the issue described above which can be resolved by re-enabling the RXRDY interrupt flag, however this results in some data loss.&lt;/p&gt;
&lt;p&gt;If I increase SERIAL_BUFF_RX_SIZE by a given amount, the packet size that causes the error increases by the same amount (i.e. for a&amp;nbsp;SERIAL_BUFF_RX_SIZE of 2 the maximum packet size without causing an error is 8, for 3, it&amp;#39;s 9 and so on).&lt;/p&gt;
&lt;p&gt;Is there away to get around this? Or should I change the UART to polling mode? I need to keep&amp;nbsp;SERIAL_BUFF_RX_SIZE defined as 1 because the received packet size will be variable, so I need the event to fire on every byte.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF UART RX done event only fires once</title><link>https://devzone.nordicsemi.com/thread/190539?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 13:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57e0dcfa-63a1-4818-92cc-7d80bf3c6c22</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you write anything on UART? In the code you attached, nrf_serial_read is commented out, and I can&amp;#39;t see any other calls to this in your code. I tried commenting it out and running your code with nothing connected, and I hit a breakpoint inside&amp;nbsp;NRF_SERIAL_EVENT_RX_DATA event multiple times.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>