<?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>S32KのトピックRe: S32k146 UART RX interrupt not receiving entire buffer</title>
    <link>https://community.nxp.com/t5/S32K/S32k146-UART-RX-interrupt-not-receiving-entire-buffer/m-p/1974788#M42124</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I recommend you to refer to the example in &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-Lpuart-IDLE-detected-with-DMA-transfer/ta-p/1945182" target="_self"&gt;S32K1xx Lpuart IDLE detected with DMA transfer&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 03:52:58 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2024-10-16T03:52:58Z</dc:date>
    <item>
      <title>S32k146 UART RX interrupt not receiving entire buffer</title>
      <link>https://community.nxp.com/t5/S32K/S32k146-UART-RX-interrupt-not-receiving-entire-buffer/m-p/1973332#M42039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm using S32k146 custom board PCB&amp;nbsp; in that i'm trying to get the RX buffer using interrupt method but the thing is my interrupt&amp;nbsp; call back function not triggering to get entire buffer.&lt;/P&gt;&lt;P&gt;for Example : if i send "&lt;STRONG&gt;AT+RESET&lt;/STRONG&gt;" to MCU&amp;nbsp; my call back function only triggering 3 times and i'm getting buffer only "&lt;STRONG&gt;AT&lt;/STRONG&gt;" remaining buffer i'm not getting and my call back event is showing as "&lt;STRONG&gt;UART_EVENT_ERROR&lt;/STRONG&gt;"&amp;nbsp;&lt;/P&gt;&lt;P&gt;please go through the below given code for your reference&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uart_init(void)
{
	LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);
	LPUART_DRV_InstallRxCallback(INST_LPUART1, iot_rx_callback, NULL);
        LPUART_DRV_SendDataBlocking(INST_LPUART1, ser_tx_cmd0, 4U, 100);
}

void iot_rx_callback(void *driverState, uart_event_t event, void *userData)
{
	(void) driverState;
	(void) userData;

    if (event == UART_EVENT_RX_FULL)
    {
        if ((buffer[bufferIdx - 1] != '\r') &amp;amp;&amp;amp; (buffer[bufferIdx] != '\n') &amp;amp;&amp;amp; (bufferIdx != (BUFFER_SIZE - 1U)))
        {
            bufferIdx++;
            LPUART_DRV_SetRxBuffer(INST_LPUART1, &amp;amp;buffer[bufferIdx++], 1U);
        }
        else
        {
	  bufferIdx=0;
           rx_complete = true;
        }
    }
}

while(1){

	int ret =LPUART_DRV_ReceiveData(INST_LPUART1, buffer, 1U);
	if(ret=STATUS_SUCCESS){
	while(LPUART_DRV_GetReceiveStatus(INST_LPUART1, &amp;amp;bytesRemaining) == STATUS_BUSY);
	  ser_buffer_index=0;
	}
/*********/
own code
/********/

}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-14 173728.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304546i8B187E8D3C55B111/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-14 173728.png" alt="Screenshot 2024-10-14 173728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my normal TX data is transmitting properly without any trouble&amp;nbsp; only problem i'm facing in RX&amp;nbsp; data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 12:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k146-UART-RX-interrupt-not-receiving-entire-buffer/m-p/1973332#M42039</guid>
      <dc:creator>bhanu_p</dc:creator>
      <dc:date>2024-10-14T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32k146 UART RX interrupt not receiving entire buffer</title>
      <link>https://community.nxp.com/t5/S32K/S32k146-UART-RX-interrupt-not-receiving-entire-buffer/m-p/1974788#M42124</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I recommend you to refer to the example in &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-Lpuart-IDLE-detected-with-DMA-transfer/ta-p/1945182" target="_self"&gt;S32K1xx Lpuart IDLE detected with DMA transfer&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 03:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k146-UART-RX-interrupt-not-receiving-entire-buffer/m-p/1974788#M42124</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-10-16T03:52:58Z</dc:date>
    </item>
  </channel>
</rss>

