<?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>Kinetis MicrocontrollersのトピックTWR-k60 UART tirgger DMA  failure</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352817#M17522</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;I use UART tansmit&amp;nbsp; trigger DMA,&amp;nbsp;&amp;nbsp; i configurate the UART and DMA registers&amp;nbsp; refer to related reference manual&amp;nbsp; and demo ,&amp;nbsp; while， the resulte is the UART can't trigger the DMA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use&amp;nbsp; DMA_TCD1_CSR-》 START trigger the DMA and then the data can send&amp;nbsp; through UART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked my program for many times ,&amp;nbsp; plase help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screenshot&amp;nbsp; is the configration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use UART3 can&amp;nbsp; DMA1.&lt;span class="lia-inline-image-display-wrapper" image-alt="3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46310iBDA8FC25B0946C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46311i1CED4565588C76B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="intiUart.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46312i3A061DCB25E54D6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="intiUart.png" alt="intiUart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="dmainit.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46313i91F5F069FC084B97/image-size/large?v=v2&amp;amp;px=999" role="button" title="dmainit.png" alt="dmainit.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 06:15:01 GMT</pubDate>
    <dc:creator>Fan_xy</dc:creator>
    <dc:date>2014-09-29T06:15:01Z</dc:date>
    <item>
      <title>TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352817#M17522</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;I use UART tansmit&amp;nbsp; trigger DMA,&amp;nbsp;&amp;nbsp; i configurate the UART and DMA registers&amp;nbsp; refer to related reference manual&amp;nbsp; and demo ,&amp;nbsp; while， the resulte is the UART can't trigger the DMA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use&amp;nbsp; DMA_TCD1_CSR-》 START trigger the DMA and then the data can send&amp;nbsp; through UART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked my program for many times ,&amp;nbsp; plase help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screenshot&amp;nbsp; is the configration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use UART3 can&amp;nbsp; DMA1.&lt;span class="lia-inline-image-display-wrapper" image-alt="3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46310iBDA8FC25B0946C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46311i1CED4565588C76B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="intiUart.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46312i3A061DCB25E54D6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="intiUart.png" alt="intiUart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="dmainit.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46313i91F5F069FC084B97/image-size/large?v=v2&amp;amp;px=999" role="button" title="dmainit.png" alt="dmainit.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:15:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352817#M17522</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-09-29T06:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352818#M17523</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;You don't show DMA configuration, which is more likely to have a problem. If the DMA channel is not configured correctly there will be a DMA error, which is visible by checking the DMA error register (where the cause if also signalled).&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>Mon, 29 Sep 2014 13:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352818#M17523</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-09-29T13:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352819#M17524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you help me again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configde the DMA error interrupt , the screenshot is the configration. While ,it not entered&amp;nbsp; interrupt function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46332iA74F29B928F4C38D/image-size/large?v=v2&amp;amp;px=999" role="button" title="21.png" alt="21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46333i1B209117A452D173/image-size/large?v=v2&amp;amp;px=999" role="button" title="22.png" alt="22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46334iB981C7C3C48FBA1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="23.png" alt="23.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the attachment is my project on CW10.6 ,TWR-K60 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352819#M17524</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-09-30T02:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352820#M17525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took a look at your project and there are a number of problems:&lt;/P&gt;&lt;P&gt;1. There are some warnings that your new functions have no prototypes and so the compiler doesn't know what types are being passed as parameters. This doesn't mean that it won't work but there is a risk that there is false use of parameters or the caller and subroutine don't match. Please always use prototypes to avoid a possible problem due to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You are setting the DMA trigger enable in the DMA channel MUX. This is used for periodic triggering (special use) and is not used/needed for the type of transfer you are trying to do. I don't know what affect it has but I have never seen it set in this mode and so consider it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You have set up for DMA transfer due to UART 3 Tx source. The DMA channel has however been configured to transfer data "from" the UART3 RxD register to memory (that is, the wrong direction). Otherwise I think that the basic setup would Ok for a single byte transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the code is probably testing a first step but there is still a lot of additional work to make good use of UART DMA operation, whereby you don't have any appliictaion interafce yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your work is not for pure learing how to set up a few details you can already get complete UART DMA support in the uTasker project at &lt;A href="http://www.utasker.com/forum/index.php?topic=1721.0" title="http://www.utasker.com/forum/index.php?topic=1721.0"&gt;KINETIS Project Code&lt;/A&gt; which will allow simultaneous Rx and Tx DMA operation on all K60 UARTs and a simple user interface as described in &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerUART.PDF" title="http://www.utasker.com/docs/uTasker/uTaskerUART.PDF"&gt;http://www.utasker.com/docs/uTasker/uTaskerUART.PDF&lt;/A&gt; (as well as integrated TCP/IP and USB stacks, FAT and most other Kinetis peripheral drivers). The uTasker simulator allows UART and DMA operation to be simulated in approx. real-time so debugging and study is must simpler than on the HW target.&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>Tue, 30 Sep 2014 12:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352820#M17525</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-09-30T12:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352821#M17526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for your help.&lt;/P&gt;&lt;P&gt;From your help I still&amp;nbsp; have some questions .&lt;/P&gt;&lt;P&gt;1, I don't&amp;nbsp; understand your meaning of "use functions&amp;nbsp; prototypes " and how&amp;nbsp; use ? Examole ,please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3,From the datasheet of k60, "The UARTx_D register is two&amp;nbsp; separate register .Reads return the contents of the read-only receive data register and write go to&amp;nbsp; the writek-only transmit data register ."&amp;nbsp; and when use software trigger DMA&amp;nbsp; , data can transmit successfully throuh UART. So, I think UART can confirm direction automatically . Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will study hard your&amp;nbsp; recommended .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 09:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352821#M17526</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-08T09:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352822#M17527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;A href="http://en.wikipedia.org/wiki/Function_prototype" title="http://en.wikipedia.org/wiki/Function_prototype"&gt;Function prototype - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. If you want to write to it you need to write the data register and not read it; it won't convert a read into a write for you.&lt;A href="http://en.wikipedia.org/wiki/Function_prototype" title="http://en.wikipedia.org/wiki/Function_prototype"&gt;http://en.wikipedia.org/wiki/Function_prototype&lt;/A&gt;&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>Wed, 08 Oct 2014 11:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352822#M17527</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-10-08T11:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352823#M17528</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;In my project I only write to the data register not read it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , I disalbe the UART receive function ,only enalbe the transmite function, then the DMA and UART can work normally,&amp;nbsp; I don't know why ?&lt;/P&gt;&lt;P&gt; Does DMA can't judge the UART receive or send ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm upset,&amp;nbsp; About this&amp;nbsp; "The UARTx_D register is two&amp;nbsp; separate register .Reads return the contents of the read-only receive data register and write go to&amp;nbsp; the writek-only transmit data register ."&amp;nbsp; is this meaning the two register , recive and send&amp;nbsp; ? while from the memory map , there only have one.&amp;nbsp; &lt;/P&gt;&lt;P&gt;UART can work at full dulpex , so how does the UARTx_D register work when&amp;nbsp; &lt;SPAN style="color: #434343; text-indent: 0px; background-color: #f2f2f2;"&gt;Send and receive at the same time&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 07:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352823#M17528</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-09T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-k60 UART tirgger DMA  failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352824#M17529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LInda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an 'implementation' method used in many serial devices (same for I2C and SPI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just because the data register shares an address it doesn't mean much since the address is only a "window" to read or write the rx/tx. Usually there will be multiple buffers there (or FIFO) so that writing data to the UARTx_D register queues data for transmission and reading it retrieves waiting data from its receiver queue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore there are no restrictions to this - it is just an address for reading and writing that happens to have the same value. Try to imaging (pretend) that the addresses for read and write are different if it heps you to.&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>Thu, 09 Oct 2014 14:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-k60-UART-tirgger-DMA-failure/m-p/352824#M17529</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-10-09T14:30:44Z</dc:date>
    </item>
  </channel>
</rss>

