Hard fault when using CMSIS DSP FFT function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hard fault when using CMSIS DSP FFT function

1,310 Views
gustavsl
Contributor III

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.

Labels (1)
0 Kudos
2 Replies

812 Views
Rick_Li
NXP Employee
NXP Employee

Hi Gustavo,

Could you mind post your project here for investigating?

0 Kudos

812 Views
gustavsl
Contributor III

Hi, Yong.

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.

https://dl.dropboxusercontent.com/u/10218454/Teste.zip

Thanks.

0 Kudos