Features
It has basic circuits for an MCU on board, such as oscillator crystal circuit, power supply circuit and usb interface
The main board has increased all the extra I/O resources.
With SWD debugging emulator download interface which can start download tasks with only 3 wires, compatible with conventional JTAG debugging.
The amount of current used for this board is equal to that of a smart cell phone and uses a micro USB port.
Specifications
Package type: LQFP
Number of pins: 48
Core: Cortex-M3
Working frequency: 72 MHz
Storage resources: flash: 64 bytes – SRAM: 20 kilobytes
Communication: 2x SPI, 3x USART, 2x I2C, 1x CAN, 37x I / O port
ADC: 2 ADC units, (12 bits / 16 channels)
Timer: 3 normal timers and 1 advanced timer
Debug download: support for JTAG/SWD interface debug download, support for AIP
RT9193: 3.3V regulator chip, maximum consumption 300mA
Description
Power LED (PWR): Power status indicator, can also detect fixed voltage.
User LED (PC13): Easy test of I/O output or programming status indicator
Select the programming method: 1 user flash memory, 2 SRAM memory, 3 system memory
REST button: REST chip for user applications
Crystal 8M: You can configure the system to be double clocked at 72MHz
Crystal 32.768KHz: Use internal RTC, or for calibration
DOCUMENTATION AND RESOURCES
STM32duino-bootloader
ST-LINK drivers
STM32 ST-LINK utility
TUTORIALS
How to program STM32F103C8T6 with Arduino IDE using STLINK
Configuring Arduino IDE to Program STM32F103C8T6 Blue Pill
I am sure you already have Arduino IDE installed on your PC (or Laptop).
If not, then install it first. After than open your Arduino IDE and select File -> Preferences.
You will find a tab called “Additional Boards Manager URLs”.
Copy the following link and paste it there.
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
If you already have some URLs in this section, you can add more by separating them with comma.
After adding the URL, click on OK.
Now, go to Tools -> Board -> Board Manager… option and search for “stm32”.
You will get a result like “STM32 Cores by STMicroelectronics”. Install the latest version.
This will take some time as it will download and install some of the necessary files and tools.
(you have to download another tool from STMicroelectronics for this to work).
Now you can select the board from Tools -> Board -> Generic STM32F1 series.
Once you select this board, a bunch of options will appear below for customizing your board type.
The first important option is “Board part number”.
Make sure that “BluePill F103C8” is selected.
The other important options are “U(S)ART support”, make it as “Enabled (generic ‘Serial’)” and “Upload method”, make its as “STM32CubeProgrammer (Serial)”.
You can leave the remaining options as their default values.
How to install the driver for STLINK V2 ?
To start using this programmer, the first thing you must do is install the driver for this programmer to be recognized by your computer, in this case I will explain how to install the driver for computers that have WINDOWS 7, 8 and 10, perform the following steps:
1- Download the ST-LINK driver
2-Connect the STLINK to the computer.
3- Open the “Device Manager” of windows and verify the status of the driver, it will come out as follows:
4- Since you downloaded the driver and verified the status of the driver, unzip the driver file and run the application called dpinst_amd64 for 64Bit systems and for 32Bits run the application dpinst_x86 .
5- Check again in device manager the status of the controller and if it appears as shown in the image, STLINK is ready.
How to use the STLINK V2 with Arduino IDE?
Before loading your first code you will have to load the STM32 boards in Arduino IDE, follow these steps:
Open Arduino IDE.
If you have not installed it, download it directly from the Arduino page , install the executable version, do not install the portable version.
Copy the following URL: http://dan.drown.org/stm32duino/package_STM32duino_index.json
Go to the Arduino tab called “File”.
Click on “Preferences”.
Go to the Card Additional URLs Manager:
In the box paste the URL.
If there is another URL, put a comma at the end, give a space and paste the URL.
Click on Ok.
In the following video you will be able to guide yourself to correctly load the STM32 cards.
In case you have the ESP8266 or ESP32 cards loaded, you just have to give a space and paste the URL.
Connection with STLINK V2 and STM32F103C8T6
Once the connections are made, connect the STLINK V2 to your PC and in the Arduino IDE configure the following:
Go to the Arduino tab called “Tools”
Click on “Plate:”
Select STM32F1 Boards (Arduino_STM32) and look for the board “Generic STM32F103C Series”
After make sure to change the programming method select STLink
To program the board it will not be necessary to select a COM port
The configuration should be as shown below.
Load Blink Code – Hello World on STM32F103C8T6 Blue Pill:
Finally, copy and paste the following code and load it on the card.
void setup () { // initialize digital pin 2 as output pinMode (PC13, OUTPUT ); } void loop () { digitalWrite (PC13, HIGH ); // Turn on the LED delay (1000); // Wait a second digitalWrite (PC13, LOW ); // Turn off the LED delay (1000); // Wait a second } And that's it, the test LED of the STM32F103C8T6 Blue Pill board will be lighting.
نقد و بررسیها
هنوز بررسیای ثبت نشده است.