<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2090354#M58151</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Okay, I will check.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 17:20:40 GMT</pubDate>
    <dc:creator>sushmasan</dc:creator>
    <dc:date>2025-04-30T17:20:40Z</dc:date>
    <item>
      <title>USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2083350#M58103</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;This is regarding USART communication between a device (Example: Raspberry Pi) and LPC55S69 using Flexcomm2 interface.&lt;/P&gt;&lt;P&gt;I checked different sdk examples, and implemented my application in the similar manner, but still my application is not working as expected.&lt;/P&gt;&lt;P&gt;I have followed these steps,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;Configured the relevant GPIO's (PIO1_24 as RX and PIO1_25 as TX) as given below&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CLOCK_EnableClock(kCLOCK_Iocon);
CLOCK_EnableClock(kCLOCK_Gpio1);

// gpio_port_num=1, gpio_pin_num=24/25, gpio_pin_alt_func=0x01, enable_digital = 0x01
IOCON-&amp;gt;PIO[gpio_port_num][gpio_pin_num] = ((IOCON-&amp;gt;PIO[gpio_port_num][gpio_pin_num] &amp;amp;
					/* Mask bits to zero which we are setting */
					(~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK)))

					| IOCON_PIO_FUNC(gpio_pin_alt_func)

					| IOCON_PIO_DIGIMODE(enable_digital));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get the default configuration,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;USART_GetDefaultConfig(&amp;amp;usart2_config);
usart2_config.baudRate_Bps = 921600U;
usart2_config.enableTx = false;
usart2_config.enableRx = true;
usart2_config.parityMode = kUSART_ParityDisabled;
usart2_config.stopBitCount = kUSART_OneStopBit;&lt;/LI-CODE&gt;&lt;P&gt;Invoke uart init&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// #define USART_IF2 USART2
USART_Init(USART_IF2, &amp;amp;usart2_config, CLOCK_GetFlexCommClkFreq(2U));&lt;/LI-CODE&gt;&lt;P&gt;Create uart handle&lt;/P&gt;&lt;LI-CODE lang="c"&gt;USART_TransferCreateHandle(USART_IF2, &amp;amp;g_uartHandle, USART2_UserCallback, NULL);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Define receive buffer,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// #define BUFFER_SIZE 256
receiveXfer.data = receiveBuffer;
receiveXfer.dataSize = BUFFER_SIZE;&lt;/LI-CODE&gt;&lt;P&gt;Invoke the non-blocking receive call,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ((!rxOnGoing) &amp;amp;&amp;amp; rxBufferEmpty)
{
	USART_TransferGetReceiveCount(USART_IF2, &amp;amp;g_uartHandle, &amp;amp;rx_count); 	
	USART_TransferReceiveNonBlocking(USART_IF2, &amp;amp;g_uartHandle, &amp;amp;receiveXfer, &amp;amp;receivedBytes);
}&lt;/LI-CODE&gt;&lt;P&gt;When the above two functions are invoked in a while loop, then only I am seeing the data count (USART_TransferGetReceiveCount gives the correct data count).&lt;/P&gt;&lt;P&gt;Let's say Raspberry Pi is sending 10 bytes of data,&amp;nbsp;USART_TransferGetReceiveCount&amp;nbsp; is giving 10 bytes, but "USART_TransferReceiveNonBlocking" does not contain any data in the receive buffer.&lt;/P&gt;&lt;P&gt;Where as when the above two functions are invoked one time, there is no data count (zero) also seen.&lt;/P&gt;&lt;P&gt;The callback is defined like this,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void USART2_UserCallback(USART_Type *base, usart_handle_t *handle, status_t status, void *userData)
		{
			if (kStatus_USART_RxIdle == status || status == kStatus_Success)
			{
				PRINTF("status is kStatus_USART_RxIdle \r\n");
				rxBufferEmpty = false;
				rxOnGoing     = false;
			}
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the call back, the control never reached to this condition.&lt;BR /&gt;kStatus_USART_RxIdle == status || status == kStatus_Success&lt;/P&gt;&lt;P&gt;Can someone please let me know, what I am missing here?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 15:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2083350#M58103</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-04-18T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2083354#M58104</link>
      <description>&lt;P&gt;Small correction in my previous message,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;USART_TransferReceiveNonBlocking(USART_IF2, &amp;amp;g_uartHandle, &amp;amp;receiveXfer, &amp;amp;receivedBytes);
USART_TransferGetReceiveCount(USART_IF2, &amp;amp;g_uartHandle, &amp;amp;rx_count); 	&lt;/LI-CODE&gt;&lt;P&gt;please note that this is the order the functions are invoked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 15:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2083354#M58104</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-04-18T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2084701#M58116</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please respond my question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 14:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2084701#M58116</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-04-22T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2087773#M58141</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="container-QE4ayg"&gt;
&lt;DIV class="item-jU10IN"&gt;
&lt;DIV class="container-jODEnh chrome70-container"&gt;
&lt;DIV class="inner-eE95c9 inner-item-aPP257" data-target-id="message-box-target-id" data-testid="union_message"&gt;
&lt;DIV class="message-block-container-cloZOG" data-testid="message-block-container"&gt;
&lt;DIV class="message-box-ZWbBdF message-box__reverse-vkxp8L" data-testid="send_message" data-message-id="3944613111938306"&gt;
&lt;DIV class="answer-action-bar-dK8PGb bottom-action-bar-wrapper-m4142O hide-N3dd2v answer-action-bar" data-testid="message_action_bar"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="container-QE4ayg"&gt;
&lt;DIV class="item-jU10IN"&gt;
&lt;DIV class="container-jODEnh chrome70-container"&gt;
&lt;DIV class="inner-eE95c9 inner-item-aPP257" data-target-id="message-box-target-id" data-testid="union_message"&gt;
&lt;DIV class="message-block-container-cloZOG" data-testid="message-block-container"&gt;
&lt;DIV class="message-box-ZWbBdF" data-testid="receive_message" data-message-id="3944613111938562"&gt;
&lt;DIV class="message-box-content-wrapper-srHdUj"&gt;
&lt;DIV class="message-content message-box-content-otxGGw receive-message-box-content-x5iBzO samantha-message-box-content-aDu1aK" data-testid="message_content"&gt;
&lt;DIV class="container-hfX5E8 flow-markdown-body theme-samantha-yJEgBp" dir="ltr" data-testid="message_text_content" data-show-indicator="false"&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-qzbcQC paragraph-element br-paragraph-space"&gt;I recommend that you first use the UART demo under the SDK for testing to rule out issues with other devices.&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-qzbcQC paragraph-element br-paragraph-space"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-qzbcQC paragraph-element br-paragraph-space"&gt;BR&lt;/DIV&gt;
&lt;DIV class="auto-hide-last-sibling-br paragraph-qzbcQC paragraph-element br-paragraph-space"&gt;Alice&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Apr 2025 10:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2087773#M58141</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-04-27T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2088528#M58145</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Before even posting this question,&amp;nbsp;I tried all other possibilities (like trying with SDK examples between two EVK's) those examples working fine. But when it comes to testing with Rpi and I am seeing an issue.&lt;/P&gt;&lt;P&gt;Anyway I will check it from my end.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Santhosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 15:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2088528#M58145</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-04-28T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2089927#M58150</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please use a logic analyzer to capture waveforms for analysis and figure out where the problems is in the communication process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2089927#M58150</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-04-30T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: USART_TransferReceiveNonBlocking not receiving the data on LPC55S69</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2090354#M58151</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Okay, I will check.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 17:20:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-TransferReceiveNonBlocking-not-receiving-the-data-on/m-p/2090354#M58151</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2025-04-30T17:20:40Z</dc:date>
    </item>
  </channel>
</rss>

