<?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: s32k144 LPUART in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1707299#M26212</link>
    <description>Hi,&lt;BR /&gt;I'll try it&lt;BR /&gt;Thank you very much</description>
    <pubDate>Fri, 18 Aug 2023 06:48:06 GMT</pubDate>
    <dc:creator>VanNgo285</dc:creator>
    <dc:date>2023-08-18T06:48:06Z</dc:date>
    <item>
      <title>s32k144 LPUART</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1704010#M26017</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I created a project which receive and send the string through LPUART with my laptop. The&amp;nbsp;LPUART_DRV_GetReceiveStatus() function always return STATUS_BUSY after rerceived the first string from my laptop. What wrong in my code ? Can I clear the Rx receive flag ?&lt;/P&gt;&lt;P&gt;My code below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;void Debug_HardwareInitialize(void)
{
	/* Initialize LPUART instance */
	LPUART_DRV_Init(INST_LPUART_1, &amp;amp;lpUartState1, &amp;amp;lpuart_1_InitConfig1);
	/* Install the callback for rx events */
	LPUART_DRV_InstallRxCallback(INST_LPUART_1, Debug_RxCallback, NULL);

	DebugPrint("\rDebug Init Complete");
}

static void Debug_RxCallback(void *driverState, uart_event_t event, void *userData)
{
	/* Unused parameters */
	(void)driverState;
	(void)userData;

	/* Check the event type */
	if(event == UART_EVENT_RX_FULL)
	{
		/* The reception stops when newline is received or the buffer is full */
		if((Debug.RxBuffer[Debug.RxCounter] != '\0') &amp;amp;&amp;amp; (Debug.RxBuffer[Debug.RxCounter] != CTRL_C) &amp;amp;&amp;amp; (Debug.RxBuffer[Debug.RxCounter] != LF) &amp;amp;&amp;amp; (Debug.RxBuffer[Debug.RxCounter] != CR) &amp;amp;&amp;amp; (Debug.RxCounter != (DEBUG_BUFFER_LEN - 2U)))
		{
			/* Update the Buffer index and the RxBuffer */
			Debug.RxCounter++;
			LPUART_DRV_SetRxBuffer(INST_LPUART_1, (uint8_t *)&amp;amp;Debug.RxBuffer[Debug.RxCounter], 1U);
		}
	}
}

void Debug_Process(void)
{

	LPUART_DRV_ReceiveData(INST_LPUART_1, (uint8_t *)Debug.RxBuffer, 1U);
	/* Wait for transfer to be completed  */
	while(LPUART_DRV_GetReceiveStatus(INST_LPUART_1, &amp;amp;bytesRemaining) == STATUS_BUSY);
	status = LPUART_DRV_GetReceiveStatus(INST_LPUART_1, &amp;amp;bytesRemaining);
	if(status != STATUS_SUCCESS)
	{
		DebugPrint("\rCOM: An error occurred! The application will stop!");
	}
	Debug.RxCounter++;
	Debug.RxBuffer[Debug.RxCounter] = 0U;

	DebugPrint("\rCOM: %s", Debug.RxBuffer);

	Debug.RxCounter = 0;
	memset(Debug.RxBuffer, 0, sizeof(Debug.RxBuffer));
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know how to fix this problem ? Please support me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 04:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1704010#M26017</guid>
      <dc:creator>VanNgo285</dc:creator>
      <dc:date>2023-08-14T04:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 LPUART</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1705185#M26093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218653"&gt;@VanNgo285&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw that your code is based on the SDK example (lpuart_echo_s32k1xx). Have you tried to run this example? If yes, did you have the same behavior?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 19:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1705185#M26093</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-08-15T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 LPUART</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1707299#M26212</link>
      <description>Hi,&lt;BR /&gt;I'll try it&lt;BR /&gt;Thank you very much</description>
      <pubDate>Fri, 18 Aug 2023 06:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-LPUART/m-p/1707299#M26212</guid>
      <dc:creator>VanNgo285</dc:creator>
      <dc:date>2023-08-18T06:48:06Z</dc:date>
    </item>
  </channel>
</rss>

