<?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: RT1015 LPUART_TransferReceiveNonBlocking Driver in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1055931#M8204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="293120" data-username="kensu" href="https://community.nxp.com/people/kensu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Ken Su&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and&lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Firstly, you should move the function :&lt;BR /&gt;LPUART_TransferReceiveNonBlocking(DEMO_LPUART, &amp;amp;g_lpuartHandle, &amp;amp;receiveXfer, &amp;amp;receivedBytes); &lt;BR /&gt;out of the While(1) {} loop, then using the LPUART_UserCallback () fucntion to handle the signal value which will determinate whether call LPUART_TransferSendNonBlocking(DEMO_LPUART, &amp;amp;g_lpuartHandle, &amp;amp;sendXfer); or not.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2020 08:19:46 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-06-04T08:19:46Z</dc:date>
    <item>
      <title>RT1015 LPUART_TransferReceiveNonBlocking Driver</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1055930#M8203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am study UART with "evkmimxrt1015_lpuart_interrupt_rb_transfer" SDK sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code is no problem.&lt;/P&gt;&lt;P&gt;After I modify some flow, it cannot receive any byte,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/111919iC3B8B7276F748AC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My idea is using polling to call&amp;nbsp;LPUART_TransferReceiveNonBlocking, if get any byte, use tx send a debug log.&lt;/P&gt;&lt;P&gt;I don't know why this modification cannot receive any RX byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there are some constrain to using&amp;nbsp;LPUART_TransferReceiveNonBlocking?&lt;/P&gt;&lt;P&gt;I attached the source code. I only modify this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 02:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1055930#M8203</guid>
      <dc:creator>kensu</dc:creator>
      <dc:date>2020-06-04T02:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: RT1015 LPUART_TransferReceiveNonBlocking Driver</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1055931#M8204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="293120" data-username="kensu" href="https://community.nxp.com/people/kensu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Ken Su&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and&lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Firstly, you should move the function :&lt;BR /&gt;LPUART_TransferReceiveNonBlocking(DEMO_LPUART, &amp;amp;g_lpuartHandle, &amp;amp;receiveXfer, &amp;amp;receivedBytes); &lt;BR /&gt;out of the While(1) {} loop, then using the LPUART_UserCallback () fucntion to handle the signal value which will determinate whether call LPUART_TransferSendNonBlocking(DEMO_LPUART, &amp;amp;g_lpuartHandle, &amp;amp;sendXfer); or not.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 08:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1055931#M8204</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-06-04T08:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: RT1015 LPUART_TransferReceiveNonBlocking Driver</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1484090#M20409</link>
      <description>&lt;P&gt;Any idea&amp;nbsp; to how to bytes actually read from&amp;nbsp;&lt;SPAN&gt;LPUART_TransferReceiveNonBlocking&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:49:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1484090#M20409</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-07-04T13:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: RT1015 LPUART_TransferReceiveNonBlocking Driver</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1484183#M20412</link>
      <description>&lt;P&gt;&lt;SPAN&gt;LPUART_TransferReceiveNonBlocking, I do get call back which rxcomplete, but I cannot how many bytes read.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 18:00:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1484183#M20412</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-07-04T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: RT1015 LPUART_TransferReceiveNonBlocking Driver</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1486292#M20484</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I manage it make it work using Rx Interrupt handler for every character which tell me count bytes received on LPUART Rx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 1-&lt;/P&gt;&lt;P&gt;For that I use LPUART2 for Tx using non-blocking&amp;nbsp;LPUART_TransferSendNonBlocking which works anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Rx I am not using&amp;nbsp;non-blocking&amp;nbsp;LPUART_TransferReceiveNonBlocking&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Rx I am using LPUART3 with my own interrupt handler for every char received.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my solution file :&amp;nbsp;&lt;SPAN&gt;lpuart_rx_interrupt.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 2-&lt;/P&gt;&lt;P&gt;Solution # 1, but is not efficient as it is not using DMA.&lt;/P&gt;&lt;P&gt;Can some one elaborate why&amp;nbsp;&amp;nbsp;LPUART_TransferReceiveNonBlocking&amp;nbsp; using with ring buffer does not give us bytes read.&lt;/P&gt;&lt;P&gt;Does using&amp;nbsp;LPUART_TransferReceiveNonBlocking&amp;nbsp; &amp;nbsp;with ringbuffer use DMA method.&lt;/P&gt;&lt;P&gt;See my example code attached: lpuart_ring_buffer.c, not tell me how many bytes it received.&lt;/P&gt;&lt;P&gt;however data do get received in buffer=g_rxBuffer not in&amp;nbsp;g_rxRingBuffer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1015-LPUART-TransferReceiveNonBlocking-Driver/m-p/1486292#M20484</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-07-07T14:51:45Z</dc:date>
    </item>
  </channel>
</rss>

