You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bsp/stm32/stm32f103-blue-pill/README.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# STM32F103C8 Blue Pill Board BSP Introduction
2
2
3
-
[[中文版]](README_zh.md)
3
+
[[中文]](README_zh.md)
4
4
5
-
This document records the guide of the BSP (board support package) provided by the RT-Thread development team for the STM32F103C8 Blue Pill development board.
5
+
This document records the introduction of the BSP (board support package) provided by the RT-Thread development team for the STM32F103C8 Blue Pill development board.
6
6
7
7
The document is covered in four parts:
8
8
@@ -17,19 +17,18 @@ By reading the ***Quickly Get Started*** section developers can quickly get thei
17
17
18
18
## Onboard Resources
19
19
20
-
The "blue pill" is a STM32F103 based development board with Cortex-M3 ARM CPU that runs at 72 MHz, 20 kB of RAM and 64 or 128 kB of flash memory. The microcontroller (MCU) has USB port, two serial ports, 16 bit PWM pins and 12 bit ADC pins. It runs at 3.3V, but some of its pins are 5V tolerant.
20
+
The "blue pill" is a STM32F103 based development board with Cortex-M3 ARM CPU that runs at 72 MHz, 20 KB of RAM and 64 or 128 KB of flash memory. The microcontroller (MCU) has a USB port, two serial ports, 16 bit PWM pins and 12 bit ADC pins. It runs at 3.3V, but some of its pins are 5V tolerant.
21
21
22
-
- MCU:STM32F103C8T6 @72MHz, 64KB FLASH , 20KB RAM
22
+
- MCU:STM32F103C8T6 @72MHz, 64KB FLASH , 20KB RAM
23
23
24
24
- Peripherals
25
25
26
26
- LED:PC13
27
27
28
28
- Debug IO interface type: SWD / ST-LINK
29
29
30
-
31
30
32
-

31
+

33
32
34
33
35
34
@@ -43,17 +42,17 @@ This BSP provides MDK4, MDK5, and IAR projects for developers and it supports th
43
42
44
43
1) Use a Type-A to Mini-B cable to connect the development board to the PC and turn on the power switch.
45
44
46
-
2) Use FTDI adapter(USB to UART) to connect the BluePill board's PA9(Tx) and PA10(Rx) pins.
45
+
2) Use FTDI adapter(USB to UART) to connect the Blue Pill board's PA9(Tx) and PA10(Rx) pins.
47
46
48
47

49
48
50
49
### Compile and Download
51
50
52
-
Double-click the `project.uvprojx` file, to open the MDK5 project, compile and download the program to the board.
51
+
Double-click the `project.uvprojx` file to open the MDK5 project; compile and download the program to the board.
53
52
54
53
### Running Results
55
54
56
-
After the program is successfully downloaded, the system runs automatically. Observe the running results of the LED on the development board, and you will see LED is flashing periodically.
55
+
After the program is successfully downloaded, the system runs automatically. Observe the running results of the LED on the development board, and you will see the LED is flashing periodically.
57
56
58
57
The USB virtual COM port connects to USART1(PA9-Tx, PA10-Rx) by default, and when the corresponding serial port (115200-8-1-N) is opened in the terminal tool, the output information of RT-Thread can be seen when the device is reset:
59
58
@@ -69,9 +68,9 @@ msh >
69
68
70
69
## **Advanced Features**
71
70
72
-
This BSP only enables GPIO and USART2 by default. If you need more advanced features such as SPI, I2C, you need to configure the BSP with RT-Thread [ENV tools](https://www.rt-thread.io/download.html?download=Env), as follows:
71
+
This BSP only enables GPIO and USART1 by default. If you need more advanced features such as SPI, ADC, or to add software packages, you need to configure the BSP with RT-Thread [ENV tools](https://www.rt-thread.io/download.html?download=Env), as follows:
73
72
74
-
1. Open the ENV tool under the specific BSP folder;
73
+
1. Open the ENV tool under the specific BSP folder, eg: *bsp/stm32/stm32f103-blue-pill*;
75
74
2. Enter `menuconfig` command to configure the project, then save and exit;
76
75
3. Enter `pkgs --update` command to update the package;
77
76
4. Enter `scons --target=mdk4/mdk5/iar` command to regenerate the project.
@@ -82,10 +81,9 @@ Learn how to use RT-Thread ENV, click [Here](https://github.com/RT-Thread/rtthre
0 commit comments