How to use CMSIS-DSP (arm_math.h) with stm32h742?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 4:22 AM - last edited on 2024-11-29 1:48 AM by Andrew Neil
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 4:56 AM
Hello @baby_chicken,
Do you want to integrate CMSIS-DSP libraries on an STM32 project?
- If you use a version of CMSIS less than 5.8.0, refer to: Configuring DSP libraries on STM32CubeIDE - STMicroelectronics Community to add the DSP libraries in your project.
- If you use the 5.8.0 version of CMSIS or higher, follow the steps shared in: How to integrate CMSIS-DSP libraries on a STM32 project- STMicroelectronics Community.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 4:52 AM - edited 2024-11-28 5: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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 4:56 AM
Hello @baby_chicken,
Do you want to integrate CMSIS-DSP libraries on an STM32 project?
- If you use a version of CMSIS less than 5.8.0, refer to: Configuring DSP libraries on STM32CubeIDE - STMicroelectronics Community to add the DSP libraries in your project.
- If you use the 5.8.0 version of CMSIS or higher, follow the steps shared in: How to integrate CMSIS-DSP libraries on a STM32 project- STMicroelectronics Community.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 5:21 AM
Since I am using stm32h742 this time, do I need to change M4 to M7 for these two below?
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 5:34 AM - edited 2024-11-28 5: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 6:30 AM
There is no MCU CGC Linker, but MCU G++ Linker is available.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-28 6:46 AM - edited 2024-11-28 6: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-29 1:18 AM
MCU G++ Linker> Libraries > Libraries (-l) has “arm_cortexM7l_math,” “arm_cortexM7lfdp_math” “arm_cortexM7lfsp_math”. Add these.
What should I add to MCU G++ Compiler> Include paths > Include paths(-l)?
Am I correct in this perception?
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-29 2:25 AM - edited 2024-11-29 2:25 AM
Hello @baby_chicken
>What should I add to MCU G++ Compiler> Include paths > Include paths(-l)?
-->Add ../Drivers/CMSIS/DSP/Include path
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-29 2:45 AM
Is this correct?
The build went through.
Best regards.
