<?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 Enable Clock for DMAMUX in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636084#M13699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using Kinetis K60F MK60FN1M0 with CodeWarrior&amp;nbsp;for MCU v10.6 and i have a question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I want to enable the clock for DMAMUX but i get the problem report: 'error: 'SIM_SCGC6_DMAMUX_MASK' undeclared (first use in this function)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I did this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(1) SIM_SCGC6 |= SIM_SCGC6_DMAMUX_MASK;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If i enable the clock for DMA then i did not get any problems (the code is: (2)&amp;nbsp;SIM_SCGC7 |= SIM_SCGC7_DMA_MASK; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;--&amp;gt; here is no problem).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Why i get only by the code (1) the problem report?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do i need some header files?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Armend&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Oct 2016 15:05:22 GMT</pubDate>
    <dc:creator>armendgecaj</dc:creator>
    <dc:date>2016-10-15T15:05:22Z</dc:date>
    <item>
      <title>Enable Clock for DMAMUX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636084#M13699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using Kinetis K60F MK60FN1M0 with CodeWarrior&amp;nbsp;for MCU v10.6 and i have a question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I want to enable the clock for DMAMUX but i get the problem report: 'error: 'SIM_SCGC6_DMAMUX_MASK' undeclared (first use in this function)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I did this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(1) SIM_SCGC6 |= SIM_SCGC6_DMAMUX_MASK;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If i enable the clock for DMA then i did not get any problems (the code is: (2)&amp;nbsp;SIM_SCGC7 |= SIM_SCGC7_DMA_MASK; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;--&amp;gt; here is no problem).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Why i get only by the code (1) the problem report?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do i need some header files?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Armend&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2016 15:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636084#M13699</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-10-15T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Clock for DMAMUX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636085#M13700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK i think i have the solution.&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;i have two DMAMUX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if i write&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SIM_SCGC6 |= SIM_SCGC6_DMAMUX&lt;STRONG&gt;0&lt;/STRONG&gt;_MASK; then i get no error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But i have a other question. I also tried to use the DMA_LDD Component.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is a structure. It is called:&amp;nbsp;&lt;STRONG&gt;LDD_DMA_TTransferDescriptor.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If i write in the structure at&amp;nbsp;&lt;STRONG&gt;TriggerType&amp;nbsp;&lt;/STRONG&gt;the command&amp;nbsp;&lt;STRONG&gt;LDD_DMA_HW_TRIGGER&amp;nbsp;&lt;/STRONG&gt;then i will have a hardware trigger. But how can i make a GPIO signal as a trigger (for example a button)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I think i have to write something at &lt;STRONG&gt;TriggerSource.&amp;nbsp;&lt;/STRONG&gt;But what?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Armend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2016 17:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636085#M13700</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-10-15T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Clock for DMAMUX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636086#M13701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Armend,&lt;/P&gt;&lt;P&gt;Please refer to the Reference Manual.&lt;/P&gt;&lt;P&gt;1) -&amp;nbsp; The DMA Source , please configure the&amp;nbsp; register of DMAMUXx_CHCFGn -&amp;gt; SOURCE :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3485i9726370213332200/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;About the source , please check the part of &amp;nbsp; 3.3.9.1 DMA MUX request sources on RM.&lt;/P&gt;&lt;P&gt;- Yes, you can use the gpio to trigger DMA , about how to trigger ( rising or falling edge) ,please check the PORTx_PCRn register on PORT part .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3432i18B19F7082677F71/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; There is a easy way to configure , create a Processor Expert project on CW, then add the component of&lt;/P&gt;&lt;P&gt;"DMATransfer_LDD" , on the configure view , you can choose the Trigger source :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3523i9B118F9F2702CFFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is a demo , DAC trigger DMA,&amp;nbsp; you can refer to :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3565iDEC52339560700AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 18 Oct 2016 02:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636086#M13701</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-10-18T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Clock for DMAMUX</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636087#M13702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sorry, i am late. Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Armend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 15:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Enable-Clock-for-DMAMUX/m-p/636087#M13702</guid>
      <dc:creator>armendgecaj</dc:creator>
      <dc:date>2016-10-28T15:36:47Z</dc:date>
    </item>
  </channel>
</rss>

