Skip to main content
Visitor II
March 12, 2020
Solved

DSP library with STM32F103 (blue pill) possible?

  • March 12, 2020
  • 2 replies
  • 2042 views

I would like to implement a FFT on a STM32F103 (blue pill).

So far i installed the STM32cubeIDE and set up a project.

I added "CMSIS CORE" and "CMSIS DSP" (as library) in the cubeMX software under additional software.

In my code i added:

#define ARM_MATH_CM3

#include "arm_math.h"

However, when compiling, i get this error:

../Core/Src/main.c:27:10: fatal error: arm_math.h: No such file or directory

Why that?

Is there a step-by-step guide for absolute beginners like me?

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter

    2 replies

    Explorer
    March 12, 2020

    > ../Core/Src/main.c:27:10: fatal error: arm_math.h: No such file or directory

    The corresponding headers are usually located in <your_DSP_Lib>\Libraries\CMSIS\Include\

    Not sure about Cube and CubeIDE, I only used the SPL-based DSP_Libs.

    > Why that?

    > Is there a step-by-step guide for absolute beginners like me?

    If you talk about an example project provided by ST, a properly setup project with all sources should be expected.

    If not, you will need to "collect" all the required sources and include paths yourself.

    Technical Moderator
    April 25, 2025

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter