<?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>i.MX RT Crossover MCUsのトピックIMXRT1024 LPUART EDMA Loopback Example Without Console/Keyboard Intervention</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-LPUART-EDMA-Loopback-Example-Without-Console-Keyboard/m-p/1335015#M16196</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just trying to observe my receive buffer in continuous transfer while I changing transmit buffer content with SDK example (lpuart_edma_transfer). So here are my main changes in SDK example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;uint16_t iteratorXfer;

while (1)
{
	/* If RX is idle and g_rxBuffer is empty, start to read data to g_rxBuffer. */
	if ((!rxOnGoing) &amp;amp;&amp;amp; rxBufferEmpty)
	{
		rxOnGoing = true;
		LPUART_ReceiveEDMA(DEMO_LPUART, &amp;amp;g_lpuartEdmaHandle, &amp;amp;receiveXfer);
	}

	/* If TX is idle and g_txBuffer is full, start to send data. */
	if ((!txOnGoing) &amp;amp;&amp;amp; txBufferFull)
	{
		txOnGoing = true;
		LPUART_SendEDMA(DEMO_LPUART, &amp;amp;g_lpuartEdmaHandle, &amp;amp;sendXfer);
	}

	/* If g_txBuffer is empty and g_rxBuffer is full, copy g_rxBuffer to g_txBuffer. */
	if ((!rxBufferEmpty) &amp;amp;&amp;amp; (!txBufferFull))
	{
		//memcpy(g_txBuffer, g_rxBuffer, ECHO_BUFFER_LENGTH);
		for(iteratorXfer=0; iteratorXfer&amp;lt; sendXfer.dataSize; iteratorXfer++)
		{
			g_txBuffer[iteratorXfer] = iteratorXfer % 2;
		}
		sendXfer.data     = g_txBuffer;
		sendXfer.dataSize = sizeof(g_txBuffer) - 1;

		rxBufferEmpty = true;
		txBufferFull  = true;
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to observe the data changes in the memory addresses. But this example expects us to input with the keyboard. I do not want keyboard intervention. I am just trying the simulate a real-life scenario in debug time. What should I do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Sep 2021 07:56:27 GMT</pubDate>
    <dc:creator>Lukas_Frank</dc:creator>
    <dc:date>2021-09-04T07:56:27Z</dc:date>
    <item>
      <title>IMXRT1024 LPUART EDMA Loopback Example Without Console/Keyboard Intervention</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-LPUART-EDMA-Loopback-Example-Without-Console-Keyboard/m-p/1335015#M16196</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just trying to observe my receive buffer in continuous transfer while I changing transmit buffer content with SDK example (lpuart_edma_transfer). So here are my main changes in SDK example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;uint16_t iteratorXfer;

while (1)
{
	/* If RX is idle and g_rxBuffer is empty, start to read data to g_rxBuffer. */
	if ((!rxOnGoing) &amp;amp;&amp;amp; rxBufferEmpty)
	{
		rxOnGoing = true;
		LPUART_ReceiveEDMA(DEMO_LPUART, &amp;amp;g_lpuartEdmaHandle, &amp;amp;receiveXfer);
	}

	/* If TX is idle and g_txBuffer is full, start to send data. */
	if ((!txOnGoing) &amp;amp;&amp;amp; txBufferFull)
	{
		txOnGoing = true;
		LPUART_SendEDMA(DEMO_LPUART, &amp;amp;g_lpuartEdmaHandle, &amp;amp;sendXfer);
	}

	/* If g_txBuffer is empty and g_rxBuffer is full, copy g_rxBuffer to g_txBuffer. */
	if ((!rxBufferEmpty) &amp;amp;&amp;amp; (!txBufferFull))
	{
		//memcpy(g_txBuffer, g_rxBuffer, ECHO_BUFFER_LENGTH);
		for(iteratorXfer=0; iteratorXfer&amp;lt; sendXfer.dataSize; iteratorXfer++)
		{
			g_txBuffer[iteratorXfer] = iteratorXfer % 2;
		}
		sendXfer.data     = g_txBuffer;
		sendXfer.dataSize = sizeof(g_txBuffer) - 1;

		rxBufferEmpty = true;
		txBufferFull  = true;
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to observe the data changes in the memory addresses. But this example expects us to input with the keyboard. I do not want keyboard intervention. I am just trying the simulate a real-life scenario in debug time. What should I do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 07:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-LPUART-EDMA-Loopback-Example-Without-Console-Keyboard/m-p/1335015#M16196</guid>
      <dc:creator>Lukas_Frank</dc:creator>
      <dc:date>2021-09-04T07:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1024 LPUART EDMA Loopback Example Without Console/Keyboard Intervention</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-LPUART-EDMA-Loopback-Example-Without-Console-Keyboard/m-p/1335156#M16199</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;It needs to configure a DMA channel to store the UART received data to RAM, then you can observe the data changes in the RAM.&lt;BR /&gt;According to your statement, you don't want to use the keyboard to input the character to the UART, I think it's okay, however, you need to use another tool or board to transmit the characters to the UART to replace the keyboard.&lt;BR /&gt;Hope this is clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&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&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;</description>
      <pubDate>Mon, 06 Sep 2021 03:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-LPUART-EDMA-Loopback-Example-Without-Console-Keyboard/m-p/1335156#M16199</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-09-06T03:31:17Z</dc:date>
    </item>
  </channel>
</rss>

