<?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 how to use two dma in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-use-two-dma/m-p/355965#M17767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear sir,&lt;/P&gt;&lt;P&gt;i am using K60 Tower board.i have uart communication both transmitting packets and receiving packets.&lt;/P&gt;&lt;P&gt;i coded for receving packet using dma with interrupt.I use channel 0 in dma0.receving packet comes in milli second &lt;/P&gt;&lt;P&gt;i have to transmit some bytes before i get receiving bytes.To ensure to get right packet bytes i use printf function.but the problem is that when i use printf function transmitting packet never goes.because may be crash with receiving packet.that i dont know when i remove printf working ok...but if the delay or some additional tasks that problem may be repeat.&lt;/P&gt;&lt;P&gt;how can i remove the problem&lt;/P&gt;&lt;P&gt;if i use dma for transmitting uart packets without interrupt,can i remove the problem&lt;/P&gt;&lt;P&gt;if i use two dma ,can use dma1 with channel 1?&lt;/P&gt;&lt;P&gt;actually i dont know when two dma with channel&lt;/P&gt;&lt;P&gt;tell me what i have to care when selecting two DMA....?&lt;/P&gt;&lt;P&gt;please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2015 03:48:17 GMT</pubDate>
    <dc:creator>lijofrancis</dc:creator>
    <dc:date>2015-03-27T03:48:17Z</dc:date>
    <item>
      <title>how to use two dma</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-use-two-dma/m-p/355965#M17767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear sir,&lt;/P&gt;&lt;P&gt;i am using K60 Tower board.i have uart communication both transmitting packets and receiving packets.&lt;/P&gt;&lt;P&gt;i coded for receving packet using dma with interrupt.I use channel 0 in dma0.receving packet comes in milli second &lt;/P&gt;&lt;P&gt;i have to transmit some bytes before i get receiving bytes.To ensure to get right packet bytes i use printf function.but the problem is that when i use printf function transmitting packet never goes.because may be crash with receiving packet.that i dont know when i remove printf working ok...but if the delay or some additional tasks that problem may be repeat.&lt;/P&gt;&lt;P&gt;how can i remove the problem&lt;/P&gt;&lt;P&gt;if i use dma for transmitting uart packets without interrupt,can i remove the problem&lt;/P&gt;&lt;P&gt;if i use two dma ,can use dma1 with channel 1?&lt;/P&gt;&lt;P&gt;actually i dont know when two dma with channel&lt;/P&gt;&lt;P&gt;tell me what i have to care when selecting two DMA....?&lt;/P&gt;&lt;P&gt;please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 03:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-use-two-dma/m-p/355965#M17767</guid>
      <dc:creator>lijofrancis</dc:creator>
      <dc:date>2015-03-27T03:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to use two dma</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-use-two-dma/m-p/355966#M17768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you transmitting the data, are you using polling or interrupt mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that the DMA requests are not enabled for transmission, this can cause a problem with the interaction between the core and the DMA engine. As I see the problem is that.The printf will work as a delay, because it takes a lot of time (I measured 10 ms at 21 MHz core frequency).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to this document and the example code for UART and DMA to check how the DMA is configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-102981"&gt;Using the DMA module in Kinetis Devices&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-use-two-dma/m-p/355966#M17768</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-03-30T17:06:35Z</dc:date>
    </item>
  </channel>
</rss>

