<?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 S32K314 uart issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1731921#M27482</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using an S32K314 board, in our project we are connecting it to a Modem in the UART.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently, we are using it with the baud rate "115200" and tried to increase the baud rate to "921600" While running it with the higher baud rate we are not able to read the entire data which is available at the UART, if the modem is sending a data the module would be able to read the data partially.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, there is a similar issue with the UART driver when we are processing the CAN data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are receiving 5 different CAN data every 200ms, while processing the CAN data the modem data received in the UART is failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Iam sharing the APIs which we used to read the UART data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please go through the APIs and help me fix this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anoop R Chandran&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 10:05:17 GMT</pubDate>
    <dc:creator>anoop_r</dc:creator>
    <dc:date>2023-09-29T10:05:17Z</dc:date>
    <item>
      <title>S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1731921#M27482</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using an S32K314 board, in our project we are connecting it to a Modem in the UART.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently, we are using it with the baud rate "115200" and tried to increase the baud rate to "921600" While running it with the higher baud rate we are not able to read the entire data which is available at the UART, if the modem is sending a data the module would be able to read the data partially.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, there is a similar issue with the UART driver when we are processing the CAN data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are receiving 5 different CAN data every 200ms, while processing the CAN data the modem data received in the UART is failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Iam sharing the APIs which we used to read the UART data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please go through the APIs and help me fix this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anoop R Chandran&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 10:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1731921#M27482</guid>
      <dc:creator>anoop_r</dc:creator>
      <dc:date>2023-09-29T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1732511#M27503</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216346"&gt;@anoop_r&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What is the return status of the Lpuart_Uart_Ip_AsyncReceive() function?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1696239127630.png" style="width: 713px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243364i38B5A081541DF3DF/image-dimensions/713x202?v=v2" width="713" height="202" role="button" title="danielmartynek_0-1696239127630.png" alt="danielmartynek_0-1696239127630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I assume you use interrupts for both FlexCAN and LPUART.&lt;/P&gt;
&lt;P&gt;You could increase the interrupt priority level for the LPUART, but this can cause issues on the FlexCAN side.&lt;/P&gt;
&lt;P&gt;What is the system clock frequency?&lt;/P&gt;
&lt;P&gt;Can you use DMA for the LPUART instead of interrupts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 09:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1732511#M27503</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-10-02T09:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1733088#M27534</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;for the response,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;What is the return status of the Lpuart_Uart_Ip_AsyncReceive() function?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am&lt;SPAN&gt;&amp;nbsp;getting zero as the return status. I can see that the UART has received 1024 byes data but while reading I am getting only partial data with zero as return status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are using a task to poll the data from the UART using the function "iotsm_get_uart_port_status" (definition in the attached txt file).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I assume you use interrupts for both FlexCAN and LPUART.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For the LPUART we have set the priority as 4 by MEX file configuration and the FlexCAN interrupt is set as 20 using the NVIC api "NVIC_SetPriority(FlexCAN0_1_IRQn, 20)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;What is the system clock frequency?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;160Mhz, please see the snapshot attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;STRONG&gt;Can you use DMA for the LPUART instead of interrupts?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We haven't done anything for DMA.&lt;/P&gt;&lt;P&gt;Can you please send any sample code that I can refer to implement DMA for the LPUART?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 11:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1733088#M27534</guid>
      <dc:creator>anoop_r</dc:creator>
      <dc:date>2023-10-03T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1733663#M27554</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216346"&gt;@anoop_r&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you use Lpuart_Uart_Ip_&lt;STRONG&gt;Async&lt;/STRONG&gt;Receive() or Lpuart_Uart_Ip_&lt;STRONG&gt;Sync&lt;/STRONG&gt;Receive, it is not clear from the code?&lt;/P&gt;
&lt;P&gt;There are just 16 priority levels.&lt;/P&gt;
&lt;P&gt;Double check the corresponding NVIC_IP registers.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1696411611568.png" style="width: 533px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243598i18F297A87D128066/image-dimensions/533x296?v=v2" width="533" height="296" role="button" title="danielmartynek_0-1696411611568.png" alt="danielmartynek_0-1696411611568.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regarding DMA, refer to this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K344-UART-DMA-example/m-p/1583510" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K344-UART-DMA-example/m-p/1583510&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 09:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1733663#M27554</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-10-04T09:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1737053#M27741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We are using "&lt;SPAN&gt;Lpuart_Uart_Ip_&lt;/SPAN&gt;&lt;STRONG&gt;Async&lt;/STRONG&gt;&lt;SPAN&gt;Receive()&lt;/SPAN&gt;" in our code.&lt;/P&gt;&lt;P&gt;How can I check the NVIC_IP register in the S32Design Studio?&lt;/P&gt;&lt;P&gt;I will go through the DMA example.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 04:31:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1737053#M27741</guid>
      <dc:creator>anoop_r</dc:creator>
      <dc:date>2023-10-11T04:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1738445#M27789</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216346"&gt;@anoop_r&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The S32K3xx_Interrupt_map.xlsx attached to the RM lists all the IRQ numbers.&lt;/P&gt;
&lt;P&gt;For example, LPUART3 has IRQ 144.&lt;/P&gt;
&lt;P&gt;In S32DS, find the NVICIP144 register in the Peripheral Registers view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1697101201926.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244753i08BFDB1B6B3FBD9A/image-dimensions/592x293?v=v2" width="592" height="293" role="button" title="danielmartynek_0-1697101201926.png" alt="danielmartynek_0-1697101201926.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:00:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/1738445#M27789</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-10-12T09:00:48Z</dc:date>
    </item>
    <item>
      <title>回复： S32K314 uart issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/2106039#M49300</link>
      <description>&lt;P&gt;how do i get&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Lpuart_Uart_Ip_SyncReceive() had receive number?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 08:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-uart-issue/m-p/2106039#M49300</guid>
      <dc:creator>dujunqiu</dc:creator>
      <dc:date>2025-05-28T08:33:30Z</dc:date>
    </item>
  </channel>
</rss>

