<?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: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1451805#M21098</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;can you decrease baudrate of the used &lt;SPAN&gt;Wi-Fi module? Maybe it is fast enough if also anything else is running and served. Also try to increase interrupt priority for used UART2 module.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 11:48:53 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2022-05-02T11:48:53Z</dc:date>
    <item>
      <title>SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1451158#M21079</link>
      <description>&lt;P&gt;hello everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SPC5748G.&lt;/P&gt;&lt;P&gt;I am using UART with LINFLEXD_UART2&lt;/P&gt;&lt;P&gt;The baudrate is 921600, and it is connected to the Wi-Fi module.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The data sent by the Wi-Fi module is processed in the callback with the install_rxcallback function.&lt;/P&gt;&lt;P&gt;The problem is that when I store the received data as an array, even bytes are missing.&lt;BR /&gt;ex:) If the total content to be received is "+eventapp:boot_complete",&lt;BR /&gt;The actual received data receives "+vnapbo_opee" and stores it in an array.&lt;/P&gt;&lt;P&gt;The callback function is as follows.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void WiFi_UART_Callback(void *driverState, uart_event_t event, void *userData)
{
	  char Str_Test = 0;
	  // Disable interrupt
	  INT_SYS_DisableIRQ(LINFLEXD2_RX_IRQn);
	  INT_SYS_DisableIRQ(LINFLEXD2_TX_IRQn);
//
	  LINFLEXD_UART_DRV_ReceiveData(INST_WIFI_UART, &amp;amp;WiFi_UART_RX_Buffer, 1U);
	  WiFi_Received_Data[WiFi_Received_Count] = WiFi_UART_RX_Buffer;
	  WiFi_Received_Count++;

//	  Str_Test = strstr(WiFi_Received_Data, "complete");
	  if(WiFi_Received_Count &amp;gt;= 20)
	  {
		  Str_Test = 0xFF;
	  }

//	  // Enable interrupt
	  INT_SYS_EnableIRQ(LINFLEXD2_RX_IRQn);
	  INT_SYS_EnableIRQ(LINFLEXD2_TX_IRQn);
}&lt;/LI-CODE&gt;&lt;P&gt;The clock settings are as follows.&lt;/P&gt;&lt;P&gt;LIN2_CLK - Interface Clock : F40, Clock Source : F80, Frequency : 80MHz&lt;/P&gt;&lt;P&gt;I don't know what the hell is the problem.&lt;/P&gt;&lt;P&gt;Thank you very much for your reply. thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1451158#M21079</guid>
      <dc:creator>cskwon</dc:creator>
      <dc:date>2022-04-29T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1451805#M21098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;can you decrease baudrate of the used &lt;SPAN&gt;Wi-Fi module? Maybe it is fast enough if also anything else is running and served. Also try to increase interrupt priority for used UART2 module.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 11:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1451805#M21098</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-05-02T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452052#M21100</link>
      <description>&lt;P&gt;Hi. Thanks Reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to increase interrupt priority?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in processor expert??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 23:50:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452052#M21100</guid>
      <dc:creator>cskwon</dc:creator>
      <dc:date>2022-05-02T23:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452158#M21103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;using INT_SYS_SetPriority(LINFLEXD2_RX_IRQn,15);&amp;nbsp; //&amp;nbsp;15 (highest priority) down to 0&lt;BR /&gt;(lowest priority).&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452158#M21103</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-05-03T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452205#M21108</link>
      <description>&lt;P&gt;Thanks, Solution&lt;/P&gt;&lt;P&gt;I changed Priority (changed to 15)&lt;BR /&gt;Sometimes data loss occurs.&lt;/P&gt;&lt;P&gt;Is there any other way to handle RX faster than the callback function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1452205#M21108</guid>
      <dc:creator>cskwon</dc:creator>
      <dc:date>2022-05-03T10:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: SPC5748G LINFLEXD_UART Using RXCallback Missing even Bytes</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1453494#M21123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can try to create circular buffer and use just&amp;nbsp;SetRxBuffer function within rx callback, so do not call&amp;nbsp;ReceiveData each time. Refer e.g. to UART_pal demo code.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:01:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPC5748G-LINFLEXD-UART-Using-RXCallback-Missing-even-Bytes/m-p/1453494#M21123</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-05-05T12:01:28Z</dc:date>
    </item>
  </channel>
</rss>

