2019-05-06 09:11 AM
I have searched, but I cannot find any information how to get the newer STM32CubeMX 5+ or the STM32CubeIDE to include the DSP header files arm_math.h, arm_const_structs.h, and arm_common_tables.h. They were copied on the older versions. How do I tell CubeMX that I want these files included? They exist in the Repository under Drivers/CMSIS/DSP/Include, but they no longer get added to the project when files are generated.
2019-11-20 03:11 PM
This is the one that works for me. But rather than copy into the current workspace, I just link over to the ~/STM32Cube files.
Thanks for the answer.
2020-02-05 02:07 PM
I have another answer that worked for me. Go to the "Addition Software" link on the .ioc. Then filter for ARM CMSIS
Install this SW package and you will then see an option in the configuration to turn on DSP functions:
Enable this and regenerate the code. You will then have a new folder in your project titled "Middleware". Dig down deep and you will find the arm_math.h include:
2020-03-18 08:02 AM
This solved the problem. Also make sure to include the required arm math source files into the main Src folder. You can get these from the DSP Source mentioned in the above diagram.
2020-03-19 09:55 AM
According to me STM32CubeMX has never promoted such DSP lib files. But yes if relying on non under root mode (<=> under root box unchecked) then such files are part of included resources because copy all option is available then.
STM32CubeIDE is not allowing to create project asking for non under root mode but is fully supporting it. Way of working so if required is to create your project from STM32CubeMX standalone then to open it within STM32CubeIDE. Once opened in STM32CubeIDE you can remain in without any issue.