<?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 when using CMSIS DSP FFT function</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435953#M25375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you mind post your project here for investigating?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 05:36:08 GMT</pubDate>
    <dc:creator>Rick_Li</dc:creator>
    <dc:date>2015-06-29T05:36:08Z</dc:date>
    <item>
      <title>Hard fault when using CMSIS DSP FFT function</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435952#M25374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using KDS 3.0.0 with a custom board using MKL26Z64 (Cortex-M0+). I'm running Linux Mint 17.1.&lt;/P&gt;&lt;P&gt;I'm trying to use the CMSIS RealFFT function. I've already added the libraries and includes.&lt;/P&gt;&lt;P&gt;Most of the functions work (some math functions, statistics functions). But when I try to use arm_rfft_fast_f32, a hard fault happens.&lt;/P&gt;&lt;P&gt;For the purpose of testing, I created a simple program that performs a FFT on a given array.&lt;/P&gt;&lt;P&gt;I used a hard fault handler and looking at the disassembly, the function fails on this instruction:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1435336955764728 jive_text_macro" data-renderedposition="113_8_1232_16" jivemacro_uid="_1435336955764728" modifiedtitle="true"&gt;&lt;P&gt;00001698:&amp;nbsp;&amp;nbsp; ldrh r3, [r0, #16]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that using ld to link would cause these hard faults. I changed my project to use gcc to link, but I still get this hard fault.&lt;/P&gt;&lt;P&gt;Any clues?&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;Gustavo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435952#M25374</guid>
      <dc:creator>gustavsl</dc:creator>
      <dc:date>2015-06-26T16:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault when using CMSIS DSP FFT function</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435953#M25375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you mind post your project here for investigating?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 05:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435953#M25375</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2015-06-29T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault when using CMSIS DSP FFT function</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435954#M25376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Yong.&lt;/P&gt;&lt;P&gt;I tried to recreate the project on CodeWarrior 10.6 on a Windows machine but I got the same results when debugging. Here's the CodeWarrior project, which is a simple call to the arm_sqrt_f32 function. I'm using a FRDM-KL25Z with the J-Link OpenSDA firmware to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dl.dropboxusercontent.com/u/10218454/Teste.zip" title="https://dl.dropboxusercontent.com/u/10218454/Teste.zip"&gt;https://dl.dropboxusercontent.com/u/10218454/Teste.zip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 00:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hard-fault-when-using-CMSIS-DSP-FFT-function/m-p/435954#M25376</guid>
      <dc:creator>gustavsl</dc:creator>
      <dc:date>2015-07-02T00:43:36Z</dc:date>
    </item>
  </channel>
</rss>

