Compilation error while integrating DSP library
While replicating the method of integrating DSP libraries into my STM32 project as discussed in the following thread: tutorial , I encountered the error #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" during the project compilation. I'd like to share a solution that proved effective in resolving this issue.
Upon inspecting the "arm_math.h" file, I observed that, after the preprocessor directives, there is an inclusion of the header file containing information related to the device's peripheral access layer, in my case, "stm32f407xx.h". The solution involved simply moving the `#include "stm32f407xx.h"` directive to the beginning of the "arm_math.h" file. Following this modification and performing a clean build of the project, the error disappeared.
Note: The microcontroller used is STM32F407VET6.
I hope this solution proves helpful to other members of the STM32 community who might face similar challenges when integrating DSP libraries into their projects. If you need further details or have other suggestions, feel free to discuss.
Error
moving include
result
