Content originally posted in LPCWare by phuockal on Fri Jan 15 02:41:16 MST 2016
Hello,
I tried to use CMSIS_DSPLIB_CM4 with function arm_rfft_fast_f32(). but the controller LPC4078 crashed.
my code look like:
//create memory for fft calculation
fftInput = new float[FFT_SAMPLE];
fftOutput = new float[FFT_SAMPLE];
//create FFT instance
fftInstance = new arm_rfft_fast_instance_f32;
//init FFT instance
arm_status status = arm_rfft_fast_init_f32(fftInstance, FFT_SAMPLE);
//collect data to do FFT
fftInput[fftIndex++] = pressureMgr->GetLastValue();
if(fftIndex >= FFT_SAMPLE)//input array full
{
//do FFT
arm_rfft_fast_f32(fftInstance, fftInput, fftOutput, 0);
}
Please show me what I did wrong.
Thanks in advance,