AnsweredAssumed Answered

Hard fault when using CMSIS DSP FFT function

Question asked by Gustavo Leal on Jun 26, 2015
Latest reply on Jul 1, 2015 by Gustavo Leal

I'm using KDS 3.0.0 with a custom board using MKL26Z64 (Cortex-M0+). I'm running Linux Mint 17.1.

I'm trying to use the CMSIS RealFFT function. I've already added the libraries and includes.

Most of the functions work (some math functions, statistics functions). But when I try to use arm_rfft_fast_f32, a hard fault happens.

For the purpose of testing, I created a simple program that performs a FFT on a given array.

I used a hard fault handler and looking at the disassembly, the function fails on this instruction:

00001698:   ldrh r3, [r0, #16]

 

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.

Any clues?

 

Thanks,

 

Gustavo.

Outcomes