<?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: command for ADC in DMA in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396387#M21812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Massimiliano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There may be another application note of interest here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/docs/uTasker/uTaskerADC.pdf" rel="nofollow"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your DMA bus master should have authority to access Flash by default but check that you haven't taken it away by modifying FMC_PFAPR.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (&lt;EM&gt;460 combinations from a single code source with no porting required&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 00:36:16 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2015-11-10T00:36:16Z</dc:date>
    <item>
      <title>command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396386#M21811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Kinetis K64, and I need to send command to ADC by DMA.&lt;/P&gt;&lt;P&gt;I found some app note and quick guide that explain how to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc-dma.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31049i1B27356928944EE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc-dma.png" alt="adc-dma.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the command buffer is in RAM, it seems that DMA can access it and correctly transfer those commands in ADCx_SC1A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, if that buffer is in flash (ie. const declaration) it doesn't works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc-dma-flash.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31112i3CD1B505577EAB60/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc-dma-flash.png" alt="adc-dma-flash.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 12:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396386#M21811</guid>
      <dc:creator>mastupristi</dc:creator>
      <dc:date>2015-11-09T12:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396387#M21812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Massimiliano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There may be another application note of interest here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/docs/uTasker/uTaskerADC.pdf" rel="nofollow"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your DMA bus master should have authority to access Flash by default but check that you haven't taken it away by modifying FMC_PFAPR.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7ed529;"&gt;:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (&lt;EM&gt;460 combinations from a single code source with no porting required&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396387#M21812</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-10T00:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396388#M21813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max，&lt;/P&gt;&lt;P&gt;I've modified the edma demo which be included in the KSDK 1.2 for transfer the data from the Flash to SRAM by through the DMA mechanism.&lt;/P&gt;&lt;P&gt;And this demo can run on the FRDM-K64F board well. So I was wondering if you can share your demo, then I can reproduce this issue on the FRDM-K64 board.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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, 10 Nov 2015 06:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396388#M21813</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-11-10T06:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396389#M21814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried modifing FMC_PFAPR in this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp; FMC-&amp;gt;PFAPR |= 0xFFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without any cange in the behaviour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 13:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396389#M21814</guid>
      <dc:creator>mastupristi</dc:creator>
      <dc:date>2015-11-10T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396390#M21815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have FRDM-K64F board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is &lt;A href="https://dl.dropboxusercontent.com/u/7966431/test9.tar.gz"&gt;here&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;I use kds 3.0.0 with ksdk 1.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you go in main.c line 52&lt;/P&gt;&lt;P&gt;you can try to change&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;static&amp;nbsp; &lt;STRONG&gt;const&lt;/STRONG&gt; uint8_t svett[ADC_CH_TOT] = { 20, 1 };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;static&amp;nbsp; uint8_t svett[ADC_CH_TOT] = { 20, 1 };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 14:07:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396390#M21815</guid>
      <dc:creator>mastupristi</dc:creator>
      <dc:date>2015-11-10T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: command for ADC in DMA</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396391#M21816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;Hi Max，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt; When you debug the demo, I'd like to suggest that you can open the memory window to check what address the svett[ADC_CH_TOT] locates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;Ping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: wingdings,zapf dingbats; font-size: 14pt;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 07:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/command-for-ADC-in-DMA/m-p/396391#M21816</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-11-11T07:41:18Z</dc:date>
    </item>
  </channel>
</rss>

