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-05-09 03:41 AM
Hi @Stephen28
Could you please tell me which MCU and version STM32CubeMX do you use ?
Best regards,
Nesrine
2019-05-09 06:07 AM
Both STM32CubeMX 5.1 and the CubeIDE. It worked in CubeMX version 4 and earlier.
I see this problem for M4 and M7 processors, specifically STM32F405RG and STM32F722RE
Thanks.
2019-05-09 06:30 AM
Hi @Stephen28
I just redo the same scenario, the files: arm_common_tables.h, arm_const_structs.h and arm_math.h are generated normally. (with both STM32F405RG and STM32F722RE ).
Best regards,
Nesrine
2019-05-09 08:03 AM
Nesrine,
I copied the project and renamed it "Fred".
I deleted all source code from Fred.
Opened Fred.ioc and generated the code.
The three files arm_common_tables.h, arm_const_structs.h, and arm_math.h do not appear in Fred->Drivers->CMSIS->Include
I zipped Fred and attached it to this message.
This project is old, and has been migrated with new versions of CubeMX many times. Since it worked in 4.0 and earlier, I am assuming that this got broken during the migration from version 4 to version 5. Is there are error in Fred.IOC that can be corrected?
2019-05-09 07:42 PM
I created a new STM32F722RE project using the STM32CubeIDE, and arm_math.h does not get copied into Drivers/CMSIS/Include. Driver/CMSIS/DSP/Include does not exist.
2019-05-10 02:51 AM
Hello @Stephen28
After check, CubeIDE only makes the copy only of the necessary library files.
Best regards,
Nesrine.
2019-05-10 02:54 AM
And it's with all the MCU not with only STM32F405RG and STM32F722RE.
Best regards,
Nesrine
2019-05-10 06:52 AM
This is the configuration window I see in CubeIDE
"Copy only the necessary library files" is selected. I cannot find any checkbox to tell CubeMX that the project will use the DSP functions. How does it know to copy the DSP files, if it does not know that they will be used? The Device Configuration Tool does not ask if you are intending to use floating point or DSP functions.
2019-05-13 03:47 AM
Hi @Stephen28
STM32CubeIDE uses the option "Generate Under Root" that always deactivates "Copy all used libraries into the project folder"
Best regards,
Nesrine