<?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 Uart DMA transfer in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Uart-DMA-transfer/m-p/645653#M6958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I am testing the example uart_edma_transfer &amp;nbsp;for the SDK 2.0. On the FRDM K64.&lt;/P&gt;&lt;P&gt;I have modified the serial port, it is the 1 now. The pin mux are updated as well.&lt;/P&gt;&lt;P&gt;The buffer length is now 128.&lt;/P&gt;&lt;P&gt;I also initialize the tx buffer to some sequential numbers.&lt;/P&gt;&lt;P&gt;The source is attached.&lt;/P&gt;&lt;P&gt;I short on the board the PTC3 and PTC4, The pin 16 of J1 to the pin 4 of J2.&lt;/P&gt;&lt;P&gt;I see the data going out on the scope. The end of rx transfer is never got.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338914"&gt;uart_edma_transfer.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 07:48:00 GMT</pubDate>
    <dc:creator>pietrodicastri</dc:creator>
    <dc:date>2016-10-18T07:48:00Z</dc:date>
    <item>
      <title>Uart DMA transfer</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Uart-DMA-transfer/m-p/645653#M6958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I am testing the example uart_edma_transfer &amp;nbsp;for the SDK 2.0. On the FRDM K64.&lt;/P&gt;&lt;P&gt;I have modified the serial port, it is the 1 now. The pin mux are updated as well.&lt;/P&gt;&lt;P&gt;The buffer length is now 128.&lt;/P&gt;&lt;P&gt;I also initialize the tx buffer to some sequential numbers.&lt;/P&gt;&lt;P&gt;The source is attached.&lt;/P&gt;&lt;P&gt;I short on the board the PTC3 and PTC4, The pin 16 of J1 to the pin 4 of J2.&lt;/P&gt;&lt;P&gt;I see the data going out on the scope. The end of rx transfer is never got.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338914"&gt;uart_edma_transfer.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 07:48:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Uart-DMA-transfer/m-p/645653#M6958</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2016-10-18T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Uart DMA transfer</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Uart-DMA-transfer/m-p/645654#M6959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your modifications are correct, however, you are not seeing Rx transfer to be finished because it "never" received data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current example was created as follows:&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;Once everything is started, UART0 sends to console the welcome message.&lt;/LI&gt;&lt;LI&gt;Once it is sent completely, then UART0 request a RX transfer.&lt;/LI&gt;&lt;LI&gt;When data is received (8 for default example, 128 for your case) then RX transfer will be finished and received data will be sent back.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are connection Rx to Tx, you are not "receiving data" on Rx once the welcome message has been sent. That is why Rx transfer never finishes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to send data to Rx after UART_ReceiveEDMA(DEMO_UART, &amp;amp;g_uartEdmaHandle, &amp;amp;receiveXfer); is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple workaround to "emulate" that user has sent data, would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* If RX is idle and g_rxBuffer is empty, start to read data to g_rxBuffer. */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((!rxOnGoing) &amp;amp;&amp;amp; rxBufferEmpty)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxOnGoing = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_ReceiveEDMA(DEMO_UART, &amp;amp;g_uartEdmaHandle, &amp;amp;receiveXfer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_SendEDMA(DEMO_UART, &amp;amp;g_uartEdmaHandle, &amp;amp;sendXfer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you will be able to receive all data on your rxBuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Uart-DMA-transfer/m-p/645654#M6959</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-10-19T17:51:08Z</dc:date>
    </item>
  </channel>
</rss>

