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
+62-10Lines changed: 62 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,23 @@ The document is covered in four parts:
9
9
- Onboard Resources
10
10
- Quickly Get Started
11
11
- Advanced Features
12
-
-References
12
+
-Read more
13
13
14
14
By reading the ***Quickly Get Started*** section developers can quickly get their hands on this BSP and run RT-Thread on the board. More advanced features will be introduced in the Advanced Features section to help developers take advantage of RT-Thread to drive more on-board resources.
15
15
16
16
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 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.
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
22
- MCU:STM32F103C8T6 @72MHz, 64KB FLASH , 20KB RAM
23
23
24
24
- Peripherals
25
25
26
26
- LED:PC13
27
27
28
-
- Debug IO interface type: SWD / ST-LINK
28
+
- Debug IO interface type: ST-LINK V2 (SWD)
29
29
30
30
31
31

@@ -38,23 +38,73 @@ The "blue pill" is a STM32F103 based development board with Cortex-M3 ARM CPU th
38
38
39
39
This BSP provides MDK4, MDK5, and IAR projects for developers and it supports the GCC development environment. Here's an example of the MDK5 development environment, to introduce how to run the system.
40
40
41
-
### Hardware connection
41
+
### Use ST-LINK Debugger to connect the Blue Pill Board
1) Use a Type-A to Mini-B cable to connect the development board to the PC and turn on the power switch.
44
74
45
-
2) Use FTDI adapter(USB to UART) to connect the Blue Pill board's PA9(Tx) and PA10(Rx) pins.
46
75
47
76

48
77
78
+
79
+
80
+
### Make sure Jumper Position (Both 0 Position)
81
+
82
+
| BOOTx | High / Low |
83
+
| :---: | :--------: |
84
+
| BOOT0 | 0 |
85
+
| BOOT1 | 0 |
86
+
87
+

88
+
89
+
90
+
49
91
### Compile and Download
50
92
51
-
Double-click the `project.uvprojx` file to open the MDK5 project; compile and download the program to the board.
93
+
- Double-click the `project.uvprojx` file to open the MDK5 project (**NOT**`template.uvprojx` file)
94
+
- Click the “option for target” button
95
+
- Debug: Choose "ST-LINK Debugger" and Click "Setting" button:
96
+
- Port: choose "SW (Serial Wire)"
97
+
- Flash Download: check "Reset and Run"
98
+
99
+
- Compile and download the program to the board
100
+
101
+
52
102
53
103
### Running Results
54
104
55
105
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.
56
106
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:
107
+
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:
58
108
59
109
```shell
60
110
\ | /
@@ -64,6 +114,8 @@ The USB virtual COM port connects to USART1(PA9-Tx, PA10-Rx) by default, and whe
64
114
msh >
65
115
```
66
116
117
+
- If you have no terminal tool software available, you can download *Putty*: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
118
+
67
119
68
120
69
121
## **Advanced Features**
@@ -79,7 +131,7 @@ Learn how to use RT-Thread ENV, click [Here](https://github.com/RT-Thread/rtthre
0 commit comments