HI
SDK-15 - NRF52840
I'm using SAADC example of the SDK.
I read the ADC values and I make an matrix to calculate FFT using the CMSIS library..
the problem is when I print the data after using DSP library (FFT), the program stuck, in dissasembly window appear:
Before to use the Library, NRF_LOG works fine.
HardFault_Handler:
0x15ee: 0xe7fe B.N HardFault_Handler ; 0x15ee
I have the following code:
for ( int y = 0; y < SAMPLES_IN_BUFFER; y++)
{
Incomplex[y*2]=vibdata[y];
Incomplex[y*2+1]=0;
NRF_LOG_RAW_INFO("%d,", Incomplex[y]);
NRF_LOG_FLUSH();
}
arm_cfft_q15(&RealFFT_Instance,(q15_t *)Incomplex,0,1);
arm_cmplx_mag_q15((q15_t *)Incomplex,fftvibout,SAMPLES_IN_BUFFER);
for ( int y = 0; y < SAMPLES_IN_BUFFER; y++)
{
NRF_LOG_RAW_INFO("%d,", fftvibout[y]); // ***** HERE the program STUCK in the dissasembler appear HardFault_Handler
NRF_LOG_FLUSH();
}
I attached an debugger screen.

Thanks
Ricardo