Skip to main content
BarcaM
Associate II
Aug 2, 2021 7:41 PM UTC
Question

How include CMSIS DSP libraries in STM32F3 project?

Hi everyone ! I start an STM32F373 project and i want to use CMSIS DSP libraries but when the project it is generated, dsp libraries don't exist in CMSIS folder.

I tried include this but i couldn't.

Can you help me ?

This topic has been closed for replies.

6 replies

Peter BENSCH
ST Technical Moderator
Aug 3, 2021 7:35 AM UTC

Welcome, @BarcaM​, to the community!

Did you create the project with STM32CubeMX?

Regards

/Peter

In order 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.
BarcaM
BarcaMAuthor
Associate II
Aug 3, 2021 12:11 PM UTC

Thanks Peter !

Yes, I use STM32Cube IDE but CMSIS folder doesn't have arm_math.h or dsp libraries

ChahinezC
Associate II
Aug 3, 2021 10:37 AM UTC

Hello @BarcaM​,

To include DSP libraries in your project, you can follow the Configuring DSP libraries on STM32CubeIDE article.

Chahinez.

BarcaM
BarcaMAuthor
Associate II
Aug 3, 2021 12:39 PM UTC

I tried this but have an error: cannot find -arm_cortexM4lf_math,there are only two files in the folder CMSIS/Lib/GCC: libarm_cortexM4l_math.a and libarm_cortexM4lf_math.a . But in the article doesnt recommend either.

ChahinezC
Associate II
Aug 12, 2021 11:30 AM UTC

Hello @BarcaM​,

Can you specify whether you tried including "armcortexM4lf_math" or "arm_cortexM4lf_math" ?

Adding "libarm_cortexM4lf_math.a" can work but it is not recommended. As mentioned in the article, it might have side effects on other use cases.

Chahinez.