<?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: UART3 overrun error occurs RT1020 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1998819#M32659</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I use MIMXRT1020-EVK board&amp;nbsp; as&amp;nbsp;edma_b2b_transfer_master, MIMXRT1064-EVK board as&amp;nbsp;edma_b2b_transfer_slave.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_4-1732184845065.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311702i9BF7D2F128AEE4B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_4-1732184845065.jpeg" alt="mayliu1_4-1732184845065.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a project based on&amp;nbsp; MIMXRT1020-EVK board, I set this board as I2C master, add UART TX, UART RX, totally using 4 DMA channels.&amp;nbsp; &amp;nbsp;I modify some code&amp;nbsp; both of MIMXRT1020-EVK project&amp;nbsp; and&amp;nbsp;MIMXRT1064-EVK project.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is both&amp;nbsp;projects run Okay.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_5-1732184992668.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311703iBDDE299450FDBF42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_5-1732184992668.png" alt="mayliu1_5-1732184992668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So please check your code, the critical code I have shown you bellow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1732184067449.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311698i0F09B52DB2483B9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1732184067449.png" alt="mayliu1_0-1732184067449.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1732184078401.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311699iB4354ECF99235FBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1732184078401.png" alt="mayliu1_1-1732184078401.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_2-1732184103892.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311700i5FDCEB4F48840336/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_2-1732184103892.png" alt="mayliu1_2-1732184103892.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_3-1732184133614.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311701iB5DFFD8856354568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_3-1732184133614.png" alt="mayliu1_3-1732184133614.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try it, and tell me to close this case.&lt;/P&gt;
&lt;P&gt;If you still have question, Please create a new case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 10:31:28 GMT</pubDate>
    <dc:creator>mayliu1</dc:creator>
    <dc:date>2024-11-21T10:31:28Z</dc:date>
    <item>
      <title>UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1978233#M32290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using uart3 interrupt of RT1020 ,i'm using uart3 for rs-485 communication and its speed is 3MBps.&lt;/P&gt;&lt;P&gt;Also, I'm using LPSPI4 CMSIS driver handler for other communication .&lt;/P&gt;&lt;P&gt;Individually uart3 works fine but after adding spi handler , it will start occurring Overrun.&lt;/P&gt;&lt;P&gt;Still im clearing overrun flag but why this flag is getting set .&lt;/P&gt;&lt;P&gt;Also ,one query when this flag set ,in this case will i receive all data or lost&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Uart_status register.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305887iEB71A9C5AA5CAF7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Uart_status register.PNG" alt="Uart_status register.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 12:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1978233#M32290</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-21T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1978958#M32300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Usually, there are various causes of UART overrun errors, and it is necessary to consider various aspects such as data processing speed and interrupt processing.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;BR /&gt;In order to better help you solve the problem, please reply to the question below.&lt;BR /&gt;First, Please tell me which DMA_UART interface function you call to receive UART data &lt;BR /&gt;Second, Please tell me where and when you call DMA_UART interface function.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;I have a few suggestions for you.&lt;BR /&gt;1: Set the DMA_UART interrupt priority to be higher than other modules.&lt;BR /&gt;2: Use ping pong buffer to receive UART data.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Wish you a nice day!&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best Regards&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1978958#M32300</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-22T07:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979022#M32303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239163"&gt;@mayliu1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Currently im using DMA uart. I'm using uart interrupt.&lt;/P&gt;&lt;P&gt;Please see below code snippet.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 08:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979022#M32303</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-22T08:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979043#M32304</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239163"&gt;@mayliu1&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please Note Currently im not using DMA uart. I'm using uart interrupt.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2024 08:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979043#M32304</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-22T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979065#M32307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your update information.&lt;/P&gt;
&lt;P&gt;If you use UART interrupt to send and receive UART data, every UART byte will trigger a UART interrupt.&lt;/P&gt;
&lt;P&gt;Your UART baud rate is very high(&lt;SPAN&gt;3MBps&lt;/SPAN&gt;) and will cause frequent entry UART interrupt, which is unreasonable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't recommend you to use the UART interrupt when the UART baud rate is so high.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979065#M32307</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-22T09:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979076#M32308</link>
      <description>Thanks for reply .&lt;BR /&gt;This overrun problem is coming after inclusion of spi cmsis handler.</description>
      <pubDate>Tue, 22 Oct 2024 09:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979076#M32308</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-22T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979090#M32309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Question: This overrun problem is coming after inclusion of spi cmsis handler.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Answer: Due to the addition of spi cmsis handler, the entry of UART interrupt will be delayed and the UART data cannot be received in time.&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;mayliu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979090#M32309</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-22T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979103#M32310</link>
      <description>So , I have to implement DMA uart then?</description>
      <pubDate>Tue, 22 Oct 2024 09:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979103#M32310</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-22T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979108#M32311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I highly recommend you using the DMA UART , especially when UART baud rate is particularly high.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979108#M32311</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-22T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979230#M32313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239163"&gt;@mayliu1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As per your suggestion i configured uart in DMA but still see the losses.&lt;/P&gt;&lt;P&gt;I can see clear losses at receiver side(my receiver is another device comport).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 12:12:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979230#M32313</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-22T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979752#M32321</link>
      <description>&lt;P class="lia-align-justify"&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thank you for your updated information.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Can you tell me when and where you call the DMA UART receive function interface?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;"In the source files(lpuart_edma_transfer.c) you sent, I didn't see any calls to the DMA UART data receive interface."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Please try to verify it according to the steps shown below.&lt;/SPAN&gt;&lt;BR /&gt;1: Set the DMA_UART interrupt priority to be higher than other modules.&lt;BR /&gt;2: Use ping pong buffer to receive UART data.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best Regards&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 04:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979752#M32321</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-23T04:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979842#M32325</link>
      <description>Thanks for reply.&lt;BR /&gt;In this project i only send the data using DMA uart .&lt;BR /&gt;So the my receiver is Ti processor device.&lt;BR /&gt;I think priority does not matter in this example because here only DMA Uart is running.&lt;BR /&gt;I have tried to send 2 bytes of data but still same issue .&lt;BR /&gt;Give me solid solution to work this because this simple uart DMA transmission .&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979842#M32325</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-23T06:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979852#M32326</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your updated information.&lt;/P&gt;
&lt;P&gt;As you said, if you only send UART data, why you ask me UART overrun error happened.&lt;/P&gt;
&lt;P&gt;UART overrun error is related with UART receive.&lt;/P&gt;
&lt;P&gt;and if you want to send UART data, It is very simple, just call&amp;nbsp;&lt;SPAN&gt;LPUART_SendEDMA.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1729663958271.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306321i25071C6AC0D8CBDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1729663958271.png" alt="mayliu1_0-1729663958271.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979852#M32326</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-23T06:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979857#M32327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239163"&gt;@mayliu1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;BR /&gt;As of now im not using uart receiver .&lt;BR /&gt;whatever i shared with is only uart transmit only (size 52 buffer)but i dont receive correct data on my Ti board using dma.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979857#M32327</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-23T06:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979931#M32331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think I know the reason of the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Continuous data transmission in your program can cause Ti board UART receiver overrun, resulting in abnormal data transfer. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I suggest adding a delay after sending 52 bytes UART data, Please try it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tested and verified this 100 times on my end, and the data sending and receiving are consistent.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1729667293341.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306343i649163166E35E407/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1729667293341.png" alt="mayliu1_1-1729667293341.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 07:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1979931#M32331</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-23T07:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1980074#M32332</link>
      <description>Thanks for reply.&lt;BR /&gt;Can you please share your source code files.</description>
      <pubDate>Wed, 23 Oct 2024 09:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1980074#M32332</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-23T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1980085#M32333</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just add a delay function, I have shown to you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_DelayAtLeastUs(100000, CLOCK_GetFreq(kCLOCK_CpuClk));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1：In addition, I suggest you check whether the data format for UART sending and receiving is consistent.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2：Please confirm whether your NXP development board and TI development board share a common ground.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3：Please confirm whether the connection between UART transmission and reception is secure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mayliu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 10:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1980085#M32333</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-23T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1984465#M32404</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140104"&gt;@mayliu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you please tell me how to set Highest the Priority to DMA controller over CPU.&lt;BR /&gt;Also in DMA i want set the highest priority to UART receive and TX than SPI.&lt;BR /&gt;Please tell me the process and API's or any examples.</description>
      <pubDate>Wed, 30 Oct 2024 06:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1984465#M32404</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-30T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1985214#M32417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226311"&gt;@hanmant&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your updated information.&lt;/P&gt;
&lt;P&gt;I suggest you can use&amp;nbsp;&lt;SPAN&gt;NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1: The first parameter is&amp;nbsp;IRQn_Type:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It depends on your design, if UART3 using DMA channel 0(#define LPUART_TX_DMA_CHANNEL 0U), then the first parameter is&amp;nbsp;DMA0_DMA16_IRQn.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2:The second parameter is&amp;nbsp;priority, The lower value, the greater the priority&amp;nbsp; of the corresponding interrupt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mayliu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 03:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1985214#M32417</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-10-31T03:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART3 overrun error occurs RT1020</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1985258#M32418</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/140104"&gt;@mayliu&lt;/a&gt;,&lt;BR /&gt;I'm thinking add this way,&lt;BR /&gt;const edma_channel_Preemption_config_t Channel_preemption_config = {&lt;BR /&gt;.enableChannelPreemption = false,&lt;BR /&gt;.enablePreemptAbility = true,&lt;BR /&gt;.channelPriority = 14U&lt;BR /&gt;};&lt;BR /&gt;const edma_channel_Preemption_config_t Channel14_preemption_config = {&lt;BR /&gt;.enableChannelPreemption = false,&lt;BR /&gt;.enablePreemptAbility = true,&lt;BR /&gt;.channelPriority = 15U&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;EDMA_SetChannelPreemptionConfig(EXAMPLE_LPUART_DMA_BASEADDR,LPUART_TX_DMA_CHANNEL, &amp;amp;Channel_preemption_config);&lt;BR /&gt;EDMA_SetChannelPreemptionConfig(EXAMPLE_LPUART_DMA_BASEADDR, LPUART_RX_DMA_CHANNEL, &amp;amp;Channel14_preemption_config);&lt;BR /&gt;is it correct or not.&lt;BR /&gt;please confirm</description>
      <pubDate>Thu, 31 Oct 2024 05:17:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/UART3-overrun-error-occurs-RT1020/m-p/1985258#M32418</guid>
      <dc:creator>hanmant</dc:creator>
      <dc:date>2024-10-31T05:17:23Z</dc:date>
    </item>
  </channel>
</rss>

