<?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>With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54719/with-nrf52840-uarte0-i-need-to-increase-the-buffer-size-from-1-byte-to-64-bytes-but-with-this-cannot-receive-1-byte-packet</link><description>Hi, 
 I&amp;#39;m using a buffer size of 64 bytes using function 
 nrf_drv_uart_rx(&amp;amp;app_uart_inst, rx_buffer, 64); 
 
 When I receive only one byte packet from the remote, I get EVENT_RXDRDY (which I expect). I then wait for about 10 ms. 
 
 1. EVENT_RXDRDY </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2019 13:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54719/with-nrf52840-uarte0-i-need-to-increase-the-buffer-size-from-1-byte-to-64-bytes-but-with-this-cannot-receive-1-byte-packet" /><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/222125?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf55f75-5930-4f6f-992d-4ceacbe78440</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;Please replace the file main.c with the following&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0513.main.c"&gt;devzone.nordicsemi.com/.../0513.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/222114?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b8edd8a-720b-4499-a4c8-3c2bf6f18e5b</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;I see there is a typecast error (the third error above). Could you tell me which line number is it and which function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/222108?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e304f92a-0509-4b7a-881e-02a858f647fb</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_usbd_5F00_cdc_5F00_acm.c"&gt;devzone.nordicsemi.com/.../app_5F00_usbd_5F00_cdc_5F00_acm.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_usbd_5F00_cdc_5F00_acm.h"&gt;devzone.nordicsemi.com/.../app_5F00_usbd_5F00_cdc_5F00_acm.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please copy these files to your directory (overwrite the existing ones). I&amp;#39;ve added the fourth parameter to get the actual number of bytes read.&lt;/p&gt;
&lt;p&gt;myprojects\..\components\libraries\usbd\class\cdc\acm\&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/222102?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76d0f77-9d4a-41b3-bb54-8253d5b4bb12</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The implicit declaration errors are removed but you still have errors regarding &amp;quot;too many arguments&amp;quot; in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__usbd__cdc__acm.html#ga561b9ae251955558f2439cfc4230cbe1"&gt;app_usbd_cdc_acm_read()&lt;/a&gt;. The function takes in 3 parameters not 4. It seems that you try to pass both a size parameter and a read_len. This should be fixed.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-14e1bbcf0fa545488cc3d8ce10fe258a/pastedimage1574774182310v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/221903?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 15:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30cacbec-552f-4649-a311-9727b7adeb73</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;I&amp;#39;ve changed the libraries also. That&amp;#39;s why there are errors. I removed the errors and tried it myself. The problem is still there. Attached is the same project with errors removed. Please let me know if you still get errors.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6131.usbd_5F00_cdc_5F00_acm.zip"&gt;devzone.nordicsemi.com/.../6131.usbd_5F00_cdc_5F00_acm.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/221883?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 14:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958677ba-46c6-427f-917e-a5510b950149</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m getting several errors when i&amp;#39;m trying to build your project in IAR. Could you just share your entire SDK that contains the project. That should solve the implicit declaration errors. Error P140 &amp;quot;too many arguments in function call&amp;quot; should be resolved before you upload the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-14e1bbcf0fa545488cc3d8ce10fe258a/pastedimage1574691232330v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/221859?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf4e77a-cd02-47d1-b4c5-6d595e3595f6</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;From the source of the UART character, I send one character to NRF52840 and I get EVENT_RXDRDY in step 1. All other steps do not see EVENT_RXDRDY. According to the document of NRF52840, after TASK_FLUSHRX in step 3, I&amp;#39;m supposed to see EVENT_ENDRX (please correct me) but I never do. In my application, I cannot send any stop command and here I&amp;#39;ve not sent TASK_STOPRX at all. I&amp;#39;ve attached the whole project herewith. The directory it is&lt;/p&gt;
&lt;p&gt;C:\nordic\nRF5SDK160098a08e2\myprojects\peripheral&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7271.usbd_5F00_cdc_5F00_acm.zip"&gt;devzone.nordicsemi.com/.../7271.usbd_5F00_cdc_5F00_acm.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/221823?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 11:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c54e5d-485d-45b4-b04c-b7c6224a9ba9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is an &lt;span&gt;EVENT_RXDRDY&lt;/span&gt; event generated between the step 1 and step 4&lt;/li&gt;
&lt;li&gt;Do you stop the peripheral with TASKS_STOPRX before you read the AMOUNT register?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Can you share a minimal project that reproduce the error?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: With NRF52840 UARTE0, I need to increase the buffer size from 1 byte to 64 bytes. But with this cannot receive 1 byte packet.</title><link>https://devzone.nordicsemi.com/thread/221700?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 23:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fc1d816-649d-4c03-9238-6323d62d767f</guid><dc:creator>smanand1234</dc:creator><description>&lt;p&gt;To add, I want to use easyDMA for buffer of size 64 bytes but if only one byte is received for a long time, I internally generate FLUSHRX TASK. I see that immediately that one byte is in the RAM after 1 ms, but I do not get the AMOUNT register populated nor do I get ENDRX interrupt.&lt;/p&gt;
&lt;p&gt;I need to implement the interrupt so that I can get as many as 64 bytes of data as a block but also be able to receive just one byte packet with the same routine. How can I achieve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>