Skip to main content
Visitor II
August 2, 2021
Question

How include CMSIS DSP libraries in STM32F3 project?

  • August 2, 2021
  • 2 replies
  • 3132 views

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.

    2 replies

    Technical Moderator
    August 3, 2021

    Welcome, @BarcaM​, to the community!

    Did you create the project with STM32CubeMX?

    Regards

    /Peter

    BarcaMAuthor
    Visitor II
    August 3, 2021

    Thanks Peter !

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

    Visitor II
    August 3, 2021

    Hello @BarcaM​,

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

    Chahinez.

    BarcaMAuthor
    Visitor II
    August 3, 2021

    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.

    Visitor II
    August 12, 2021

    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.