<?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>LPC MicrocontrollersのトピックRe: FFT example code</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547610#M13513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Sat Dec 12 10:45:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a "CMSIS DSP" library provided with LPCXpresso examples. Includes source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also a more optimised version (for Cortex-M3 rather than M4) here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fapplication_note%2FAN10913_CM3_DSP_library_v1_0_0.zip" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/application_note/AN10913_CM3_DSP_library_v1_0_0.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:29:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:29:50Z</dc:date>
    <item>
      <title>FFT example code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547609#M13512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Sat Dec 12 04:08:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi NXP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC4078, and I want to do FFT on that MCU&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any example code or user manual about how to use DSP library, specially FFT functions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can I get start for FFT?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547609#M13512</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: FFT example code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547610#M13513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Sat Dec 12 10:45:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a "CMSIS DSP" library provided with LPCXpresso examples. Includes source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also a more optimised version (for Cortex-M3 rather than M4) here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fapplication_note%2FAN10913_CM3_DSP_library_v1_0_0.zip" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/application_note/AN10913_CM3_DSP_library_v1_0_0.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547610#M13513</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: FFT example code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547611#M13514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Fri Jan 15 02:41:16 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use CMSIS_DSPLIB_CM4 with function arm_rfft_fast_f32(). but the controller LPC4078 crashed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//create memory for fft calculation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fftInput = new float[FFT_SAMPLE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fftOutput = new float[FFT_SAMPLE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//create FFT instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fftInstance = new arm_rfft_fast_instance_f32;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//init FFT instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm_status status = arm_rfft_fast_init_f32(fftInstance, FFT_SAMPLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//collect data to do FFT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fftInput[fftIndex++] = pressureMgr-&amp;gt;GetLastValue();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(fftIndex &amp;gt;= FFT_SAMPLE)//input array full&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //do FFT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arm_rfft_fast_f32(fftInstance, fftInput, fftOutput, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please show me what I did wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547611#M13514</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: FFT example code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547612#M13515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Mon Jan 18 23:37:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I finally passed the issue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the bug is belong to CMSIS DSP library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow to some other site, I don't remember now. Just change the code at line 57 of file arm_bitreversal2.S&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from: #define CODESECT .section text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to: #define CODESECT .section .text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(add . before text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FFT-example-code/m-p/547612#M13515</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:29:51Z</dc:date>
    </item>
  </channel>
</rss>

