<?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: K60 UART DMA using PE not working ! in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327414#M2480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can control the num,ber of bytes transferred before the DMA completes by setting both DMA_TCD_BITER_ELINK and DMA_TCD_CITER_ELINK to the length that you require.&lt;/P&gt;&lt;P&gt;In DMA_TCD_CSR you can configure for an interrupt on half-transfer completion and/or on complete transfer completion.If you presently get two interrupts you may have both interrupts enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 15:24:02 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2014-08-01T15:24:02Z</dc:date>
    <item>
      <title>K60 UART DMA using PE not working !</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327411#M2477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using codewarrior 10.5 , 10.6 . I wanted to make a simple program in which I will send a char through terminal window&amp;nbsp; using DMA for receiving, I will store that in a variable and will echo that back. I had to send a string but initially I tried with a char. The DMA didn't worked. Attached is the codes I made 2 code sto test using DMAT, DMACH component of PE. Currently I am using MK60512VLL10 uc. and DMA is configured to UART4 Receive. I have made it worked using DMAT component in K20. It works fine there, I have transmitted 100 bytes using DMA in K20. but in K60 I am not able to .I checked in CW10.5 as well as CW10.6 but it didn't worked Please look into the matter. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar &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-338611"&gt;DMA-TEST-DMAT.zip&lt;/A&gt;&lt;/STRONG&gt;&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-338611"&gt;DMA-TEST-DMACH.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 10:52:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327411#M2477</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-07-31T10:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: K60 UART DMA using PE not working !</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327412#M2478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took a quick look at the project in DMA-TEST-DMAT.zip.&lt;/P&gt;&lt;P&gt;My feeling is that the DMA is essentially set up correctly but I think that the UART is not configured for DMA operation - looking at the register UART4_C2 the receiver and transmitter have been enabled (0x0c) but there is no setup to trigger DMA transfers.To enable a peripheral DMA transfer to be triggered on reception the bit 0x20 must be set - for transmission bit 0x80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the rx/tx are enabled using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; UART_PDD_EnableTransmitter(UART4_BASE_PTR, PDD_ENABLE); /* Enable transmitter */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; UART_PDD_EnableReceiver(UART4_BASE_PTR, PDD_ENABLE); /* Enable receiver */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I think that you will need to eithert work out how to tell PE to "also" enable DMA at the UART (perhaps you forgot to tell it (?)) or else manipulate it by adding whatever calls are needed to do it later in your user code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your K20 project worked check which calls were used there and maybe you can work out why they are missing in this configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 14:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327412#M2478</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-08-01T14:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: K60 UART DMA using PE not working !</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327413#M2479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable reply. I did the following changes and it is working for single character. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;// UART_PDD_EnableReceiveDma(UART4_BASE_PTR, PDD_ENABLE); // Enable DMA for UART receive&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;UART4_C2 |= UART_C2_RIE_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;// Interrupt /DMA Enable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;UART4_C5 |= UART_C5_RDMAS_MASK;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;// DMA &lt;/SPAN&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;I wanted to know suppose I have char buffer[10]; the values coming in is 10 bytes , I want the DMA to flag the transfer complete if all 10 bytes are received. currently by setting buffer's address offset to 1, I am able to receive 10 bytes of data but in b/w DMA flag is flagging 2 times. also&amp;nbsp; I have configured it for single transfer. &lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;What would you suggest as the above configuration didn't worked. &lt;/P&gt;&lt;P class="western"&gt;&lt;/P&gt;&lt;P class="western"&gt;Kind Regards&lt;/P&gt;&lt;P class="western"&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 14:33:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327413#M2479</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-01T14:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: K60 UART DMA using PE not working !</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327414#M2480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can control the num,ber of bytes transferred before the DMA completes by setting both DMA_TCD_BITER_ELINK and DMA_TCD_CITER_ELINK to the length that you require.&lt;/P&gt;&lt;P&gt;In DMA_TCD_CSR you can configure for an interrupt on half-transfer completion and/or on complete transfer completion.If you presently get two interrupts you may have both interrupts enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 15:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K60-UART-DMA-using-PE-not-working/m-p/327414#M2480</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-08-01T15:24:02Z</dc:date>
    </item>
  </channel>
</rss>

