CMSIS, FFT, Compilation works, During Debug: "Can't find a source file...". Why?
Hello,
I try to implement an FFT on the STM32F401CE controller. I followed a tutorial from youtube (https://www.youtube.com/watch?v=vCcALaGNlyw). It mainly consists of including arm_math.h and libarm_cortexM4lf_math.a. I succeeded in doing so and compilation worked fine in CubeIDE Version: 1.3.1.
However, when I try to debug the program, it goes into the HardFault_Handler() with BFSR = 0b10000010.
If I execute the program in singel stepping (pressing F5), I get the following information:
Can't find a source file at "D:\CMSIS\CMSIS_Setup_V4.xx\CMSIS\DSP_Lib\Source\GCC/../TransformFunctions/arm_rfft_q15.c"
I have absolutely no Idea, why there is a file expected on that location, especially as I have no drive D.
I have the following questions:
- Why is some file needed, even if the compilation worked fine. I would expect, that the .hex file contains all needed code
- What component is searching for the file and how can I set the search path correctly? I could click on "locate file" therby adding the correct path to "Debug Configuration - Source - Path Mapping". However, I don't understand what I am doing there...
- This procedure is needed at least for arm_rfft_q15.c as well as cmsis_gcc.h. The program still compiles fine but is not running (neither in debug mode nor without debugger connected). At the current stage I don't reach a point where I get information about the next missing file (by single steppin).
Many thanks for your hints,
Best Regards,
Donald