2024-11-28 04:22 AM - last edited on 2024-11-28 05:40 AM by Andrew Neil
2024-11-28 04:52 AM - edited 2024-11-28 05:42 AM
arm_math.h is just a header file - so you just #include it.
Please give more details on what you're actually trying to do ...
EDIT:
So the question is really about using CMSIS-DSP. I've edited the title to make that clear.
2024-11-28 04:56 AM
Hello @baby_chicken,
Do you want to integrate CMSIS-DSP libraries on an STM32 project?
You can check by opening the ARM.CMSIS.pdsc file in \STM32Cube_FW_H7_Vx.x.x\Drivers\CMSIS folder with notepad to know which CMSIS version is included in the package.
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-11-28 05:21 AM
Since I am using stm32h742 this time, do I need to change M4 to M7 for these two below?
Best regards.
2024-11-28 05:34 AM - edited 2024-11-28 05:58 AM
Hello @baby_chicken,
Yes, the libraries depend on the core you are using.
So, from Project menu or File menu, go to Properties > C/C++ Build > Settings > Tool Settings > MCU CGC Linker > Libraries > Libraries (-l) > Add and insert the following libraries: "arm_cortexM7l_math," "arm_cortexM7lfdp_math" and "arm_cortexM7lfsp_math".
Please use ARM_MATH_CM7 instead of ARM_MATH_CM4.
I think this post: STM32H723 CMSIS DSP can help you.
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-11-28 06:30 AM
There is no MCU CGC Linker, but MCU G++ Linker is available.
Best regards.
2024-11-28 06:46 AM - edited 2024-11-28 06:53 AM
Hello @baby_chicken,
Are you using C++?
If you use C++, could you use "MCU G++ Compiler" for including paths and preprocessor and "MCU G++ Linker" for including libraries.
I recommend you to get inspired from the previous post.
Could you share your project?
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.