Hard fault when using CMSIS DSP FFT function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Hard fault when using CMSIS DSP FFT function

1,348件の閲覧回数
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.

ラベル(1)
0 件の賞賛
2 返答(返信)

850件の閲覧回数
Rick_Li
NXP Employee
NXP Employee

Hi Gustavo,

Could you mind post your project here for investigating?

0 件の賞賛

850件の閲覧回数
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 件の賞賛