<?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のトピックRe: Hard Fault Using FFT in TWR-KM34Z50M</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588566#M34629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your question, maybe the wrong Kinetis configuration leads to the issue, for example, you do not initialize the FPU module before you use float type variable.&lt;/P&gt;&lt;P&gt;can you develop an simple example which can duplicate the issue, and paste the project here so that we can debug it.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 03:37:15 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2016-07-01T03:37:15Z</dc:date>
    <item>
      <title>Hard Fault Using FFT in TWR-KM34Z50M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588565#M34628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;I am trying to use the FFT library (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;meterlibFFT_cm0p_mmau_iar.a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;version 4.0.0.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;) in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;TWR-KM34Z50M&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;, I have do following initialization before I call function &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_Interpolation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_InitParam&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_SetCalibCoeff&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT_SetEnergy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_InitAuxBuff&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;Also I noted the sampling values have been put in the buffer using following function:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_InitMainBuff&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;But there is a hard fault error come out when the program running in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;METERLIBFFT1PH_Interpolation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;. Could someone tell me what happen and how I can solve this problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN lang="EN-US"&gt;Martin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588565#M34628</guid>
      <dc:creator>martinzhang</dc:creator>
      <dc:date>2016-06-29T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault Using FFT in TWR-KM34Z50M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588566#M34629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your question, maybe the wrong Kinetis configuration leads to the issue, for example, you do not initialize the FPU module before you use float type variable.&lt;/P&gt;&lt;P&gt;can you develop an simple example which can duplicate the issue, and paste the project here so that we can debug it.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:37:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588566#M34629</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-07-01T03:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault Using FFT in TWR-KM34Z50M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588567#M34630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCU used in my project is MKM34Z128C, I cannot find any description of FPU module in the manual, so I am not sure it must&amp;nbsp; be initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachecd project has the problem I mentioned before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 05:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588567#M34630</guid>
      <dc:creator>martinzhang</dc:creator>
      <dc:date>2016-07-01T05:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault Using FFT in TWR-KM34Z50M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588568#M34631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I found the problem maybe I used the wrong MCU, MKM34Z128C does not have a MAC. According AN4255, the FFT library needs: Higher computational power of the MCU (a 32-bit MAC unit is required).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 06:39:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-Fault-Using-FFT-in-TWR-KM34Z50M/m-p/588568#M34631</guid>
      <dc:creator>martinzhang</dc:creator>
      <dc:date>2016-07-01T06:39:17Z</dc:date>
    </item>
  </channel>
</rss>

