Getting Started with Programming the STM32F103C8 BluePill Using Arduino IDE
Introduction
This tutorial will guide you through setting up your STM32F103C8 BluePill microcontroller with the Arduino IDE. By the end of this tutorial, you'll have your BluePill board blinking its onboard LED.
Requirements
STM32F103C8 BluePill board
ST-LINKV2 or FTDI programmer
Jumper wires
Arduino IDE installed on your computer
Step-by-Step Instructions
1. Install STM32 Boards in Arduino IDE
Open the Arduino IDE.
Go to File > Preferences.
In the Settings tab, find the Additional Boards Manager URLs field.
Click the icon next to the field and paste the following URL:
Disclaimer: The provided code is for educational purposes only. The author is not responsible for any damage to your hardware or software.
6. Upload the Sketch
Click the Upload button in the Arduino IDE.
Once the upload is complete, the onboard LED should start blinking.
7. Configure the BluePill for Running Mode
Unplug the ST-LINKV2 or FTDI programmer.
Set BOOT0 to 0 (running mode).
Set BOOT1 to 0.
Conclusion
You have successfully programmed your STM32F103C8 BluePill using the Arduino IDE. The onboard LED should now be blinking, indicating that your setup is correct and your code is running.