cancel
Showing results for 
Search instead for 
Did you mean: 

How to program Blue Pill (STM32F103C8T6) using C++ on STM32Cube IDE to blink its LED as the first embedded project

Adev.1
Associate III

Hi all,

This is my first embedded programming project and Blue Pill is my first board to work on. Since I've got some experience in C++, I wish to use that language to make a project for blinking the Blue Pill's LED. Amongst various IDEs out there I picked up STM32CubeIDE because I suppose they both are from a family and they're better to be used together.

There are very many tutorials regarding Blinking Blue Pill's LED on the Web, but the problem with all I came across were two things: they all use the C language to program and also a pre-made code for the project. I want to use C++ and write the code myself.

After installing the IDE, I created a new STM32 Project called "Blinking LED" and then selected C++ as the target language and I'm stopped there.

What I need now is a guidance to conduct me from that point up to the IDE's code editor where I can put my own C++ code for the project to be run on the board.

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

1 REPLY 1
Peter BENSCH
ST Employee

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.