2024-08-28 04:45 AM
Hello All,
I wanted to copy two files from the STM32Cube directory to use arm_math.h, but those files are nowhere to be found.
・STM32Cube\Repository\STM32Cube_FW_F4_Vxxxx\Drivers\CMSIS\Lib\ARM\arm_cortexM4lf_math.lib
・STM32Cube\Repository\STM32Cube_FW_F4_Vxxxx\Drivers\CMSIS\Lib\GCC\libarm_cortexM4lf_math.a
What should we do when these two are not available?
best regards.
STM32F407vgt6,cubeIDE Version: 1.14.1,CMSIS Version5.9.0
2024-08-28 04:53 AM
2024-08-28 05:35 AM
@Andrew Neil ,Thank you for your response.
I have done all of the above and still get an error. What should I do?
error: arm_math.h: No such file or directory
best regards.
2024-08-28 06:02 AM - edited 2024-08-28 06:03 AM
@baby_chicken wrote:error: arm_math.h: No such file or directory
So have you checked if that file does actually exist somewhere - anywhere - in your project?
Clearly, if it doesn't exist then the compiler is correct in saying, "no such file"!
If it does exist, then is it in a place where your project is configured to find it? ie, is it somewhere as defined in your Include Paths?
2024-08-28 06:17 AM
@Andrew Neil ,Thank you for your response.
I think I am setting Include Paths here, but what's the difference?
2024-08-28 06:41 AM
Hello @baby_chicken ,
If you want to use 5.8.0 version of CMSIS or higher, I advise you to follow the steps shared in this FAQ: How to integrate CMSIS-DSP libraries on a STM32 project.
Please let me know if the issue is solved or not?
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-08-28 06:53 AM
@KDJEM.1 ,Thank you for your response
When I try this method, I get an error “error: arm_math.h: No such file or directory”.
What should I do?
best regards.
2024-08-28 07:12 AM
Hi @baby_chicken ,
Are you copy the Include Drivers from STM32Cube_FW_F4_V1.28.0\CMSIS\DSP\Include to your generate project?
For that please, ensure that steps 3, 4 and 7 shared in the FAQ are followed properly.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.