Hard fault when using CMSIS DSP FFT function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Hard fault when using CMSIS DSP FFT function

2,197 次查看
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 回复数

1,699 次查看
Rick_Li
NXP Employee
NXP Employee

Hi Gustavo,

Could you mind post your project here for investigating?

0 项奖励
回复

1,699 次查看
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 项奖励
回复