This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using cFFT library NRF_LOG stop with Hardfault_Handler

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:

I attached an debugger screen.

Thanks 

Ricardo

Parents
  • Dear Nordik Team

    Finally, i have spent a lot of time trying to fidn a solution, I got it..
    The error was the position of INICIALITACION OF THE INSTANCE FFT...(arm_cfft_instance_q15   RealFFT_Instance;   )

    Before initialization of the variable, it was located in the Saadc_callback function..


    After, I moved it to at the begining of the program

    Another problem, I realized,  the result of the FFT function all time give me a different result, i saw it in the "Live watch" in the screen shot.

    But it corrected when the instance was moved to the beginning of the program.

    Best Regards

    Ricardo

Reply
  • Dear Nordik Team

    Finally, i have spent a lot of time trying to fidn a solution, I got it..
    The error was the position of INICIALITACION OF THE INSTANCE FFT...(arm_cfft_instance_q15   RealFFT_Instance;   )

    Before initialization of the variable, it was located in the Saadc_callback function..


    After, I moved it to at the begining of the program

    Another problem, I realized,  the result of the FFT function all time give me a different result, i saw it in the "Live watch" in the screen shot.

    But it corrected when the instance was moved to the beginning of the program.

    Best Regards

    Ricardo

Children
No Data