2022-01-17 12:40 PM - last edited on 2023-11-30 07:18 AM by Amel NASRI
In the last month, I did an example of FFT using the CMSIS DSP library. Now, I am trying to design a simple "matched filter".
In my code I am using "arm_fir_init_f32" and "arm_fir_f32". While debugging, on the line of "arm_fir_f32", I am getting "HardFault_Handler(void)".
According to the "Debug" panel, the file for "arm_fir_f32.c" can not be found. And the file path which is being shown on the screen is wrong (there is no file path like that on my PC), where is this file path coming from?
Any advice to solve the problem?
Solved! Go to Solution.
2022-01-19 06:20 AM
Thanks for your advice. You're right, I just typed the wrong variable into the function. I corrected it, it worked!
2022-01-17 03:37 PM
The source for these is not available.
> Any advice to solve the problem?
The issue is likely an invalid pointer in the structure you're passing to the function or similar memory mismanagement issue.
2022-01-17 07:27 PM
You must find math library and header files for your MCU and configure "Paths and Symbols" in project properties. Check this article: Using STM32 CMSIS DSP library in STM32CubeIDE
For example, on H7 MCU:
I copied library files to separate directory from Cube firmware package (remember to keep it up to date with firmware libraries):
arm_fir_init_f32 is inside "xxxx_math.a" library:
2022-01-19 06:20 AM
Thanks for your advice. You're right, I just typed the wrong variable into the function. I corrected it, it worked!
2022-01-19 06:21 AM
Thanks for the advice. I have done the first steps already, however, the last part of your explanation is so valuable. Helpful!