Skip to main content
HTuam.1
Associate
Mar 12, 2020 7:16 AM UTC
Solved

DSP library with STM32F103 (blue pill) possible?

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.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Apr 25, 2025 7:23 AM UTC

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

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.

2 replies

Ozone
Principal
Mar 12, 2020 8:07 AM UTC

> ../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.

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Apr 25, 2025 7:23 AM UTC

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

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.