<?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: DMA MUX on MK02FN128VFM10 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434215#M25237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Earl. That was it. For everyone else, here's the working snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;SIM_WR_SCGC6_DMAMUX&lt;/SPAN&gt;(&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;SIM&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #371f80;"&gt;uint8_t &lt;/SPAN&gt;test = &lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;DMAMUX_CHCFG0&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;LOG_DEBUG1&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"DMAMUX_CHCFG0: %x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&lt;/SPAN&gt;, test);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 18:45:51 GMT</pubDate>
    <dc:creator>bloatedwarthog</dc:creator>
    <dc:date>2015-09-08T18:45:51Z</dc:date>
    <item>
      <title>DMA MUX on MK02FN128VFM10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434213#M25235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I have been working on getting Example 7.1.5 from this document:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf" rel="nofollow"&gt;http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; working on our MK02.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the PIT configured and working, but whenever I try to reference the DMA MUX registers for either read or write operations, I get a hard fault. The register I'm trying to access is DMAMUX_CHCFG0 at address 0x40021000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reading section 21.3 of this manual:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/microcontrollers/doc/ref_manual/K02P64M100SFARM.pdf" rel="nofollow"&gt;http://cache.freescale.com/files/microcontrollers/doc/ref_manual/K02P64M100SFARM.pdf&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; says that the address is at the location I'm trying to access. I'm a little confused why even trying to access the location causes a hard fault.&amp;nbsp; In any case, I'm wondering if you could ask around and find out if anyone has this sample running on the MK02. I want to do exactly what the sample does which is read the ADC at a particular frequency and DMA the results to a block of memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I'm using is literally as simple as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t test = DMAMUX_CHCFG0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG_DEBUG1("DMAMUX_CHCFG0: %x\n", test);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also looked at the definitions from the mac7100.h file used by Keil. That defines the config register as DMAMUX_CHCONFIG0 at address 0xFC084000. This doesn't match the hardware docs I have so I assume it is referencing a different chip. Just for fun I tried accessing the register but got the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks in advance for any clues you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 15:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434213#M25235</guid>
      <dc:creator>bloatedwarthog</dc:creator>
      <dc:date>2015-09-08T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: DMA MUX on MK02FN128VFM10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434214#M25236</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;Is the clock gating for the DMAMUX enabled? Please be sure that the field &lt;STRONG&gt;DMAMUX&lt;/STRONG&gt; in the register &lt;STRONG&gt;SIM_SCGC6&lt;/STRONG&gt; is enabled before to write/read in the &lt;STRONG&gt;DMAMUX_CHCFGn&lt;/STRONG&gt; register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 16:00:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434214#M25236</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-09-08T16:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: DMA MUX on MK02FN128VFM10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434215#M25237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Earl. That was it. For everyone else, here's the working snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;SIM_WR_SCGC6_DMAMUX&lt;/SPAN&gt;(&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;SIM&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #371f80;"&gt;uint8_t &lt;/SPAN&gt;test = &lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;DMAMUX_CHCFG0&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f542e; font-weight: bold;"&gt;LOG_DEBUG1&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"DMAMUX_CHCFG0: %x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;\n&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&lt;/SPAN&gt;, test);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 18:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-MUX-on-MK02FN128VFM10/m-p/434215#M25237</guid>
      <dc:creator>bloatedwarthog</dc:creator>
      <dc:date>2015-09-08T18:45:51Z</dc:date>
    </item>
  </channel>
</rss>

