Skip to content

Commit 60e9808

Browse files
authored
Merge pull request #3996 from mysterywolf/master
[bsp][stm32][docs] add document: stm32 nucleo64 bsp introduction
2 parents 7f50e7f + 7d0b834 commit 60e9808

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# STM32 Nucleo-64 BSP Introduction
2+
3+
This document records the guide of the BSP (board support package) provided by the RT-Thread development team for the STM32 Nucleo-64 development boards.
4+
5+
The document is covered in three parts:
6+
7+
- Resources Introduction
8+
- Quickly Get Started
9+
- Advanced Features
10+
11+
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.
12+
13+
14+
15+
## Resources Introduction
16+
17+
The STM32 Nucleo-64 development boards are produced by ST official for STM32 series.
18+
19+
The STM32 Nucleo-64 boards provide an affordable and flexible way for users to try out new concepts and build prototypes by choosing from the various combinations of performance and power consumption features, provided by the STM32 microcontroller. For the compatible boards, the external SMPS significantly reduces power consumption in Run mode.
20+
21+
### **For more details about these boards, please refer to [ST Nucleo official website](https://www.st.com/en/evaluation-tools/stm32-nucleo-boards.html?querycriteria=productId=LN1847).**
22+
23+
[![board](figures/stm32-nucleo-64.jpg)](figures/stm32-nucleo-64.jpg)
24+
25+
The mainly-used resources of this board are shown as follows:
26+
27+
- Common-used peripherals:
28+
- 3 LEDs: USB communication (LD1), user LED (LD2), power LED (LD3)
29+
- 2 Buttons: USER and RESET
30+
- Common-used interfaces: USB, Arduino Uno interface, and ST morpho
31+
- Debug interface: ST-LINK/V2-1
32+
33+
34+
35+
## Quickly Get Started
36+
37+
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.
38+
39+
### Hardware connection
40+
41+
Use a Type-A to Mini-B cable to connect the development board to the PC and turn on the power switch. The LD3 (PWR) and LD1 (COM) will light.
42+
43+
### Compile and Download
44+
45+
- Double-click the `project.uvprojx` file to open the MDK-Keil5 project (**NOT** `template.uvprojx` file)
46+
- Click the “option for target” button
47+
- Debug: Choose "ST-LINK Debugger" and Click "Setting" button:
48+
- Port: choose "SW (Serial Wire)"
49+
- Flash Download: check "Reset and Run"
50+
51+
- Compile and download the program to the board
52+
53+
### Running Results
54+
55+
After the program is successfully downloaded, the system runs automatically. Observe the running results of the LED on the development board, the LD3 and LD1 will light all the time, and LD2 will flash periodically.
56+
57+
The USB virtual COM port connects to **USART2 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+
59+
```shell
60+
\ | /
61+
- RT - Thread Operating System
62+
/ | \ 4.0.0 build Dec 21 2018
63+
2006 - 2018 Copyright by rt-thread team
64+
msh >
65+
```
66+
67+
### Terminal tool - PuTTy
68+
69+
If you have no terminal tool software available, you can download *PuTTy*:
70+
71+
> https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
72+
73+
![putty](figures/putty.png)
74+
75+
76+
77+
These two videos will show you how to use PuTTy:
78+
79+
> https://www.youtube.com/watch?v=ab4ilbsteWU
80+
>
81+
> https://www.youtube.com/watch?v=dO-BMOzNKcI
82+
83+
84+
85+
## **Advanced Features**
86+
87+
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 tool](https://www.rt-thread.io/download.html?download=Env) , as follows:
88+
89+
1. Open the ENV tool under the specific BSP folder;
90+
2. Enter `menuconfig` command to configure the project, then save and exit;
91+
3. Enter `pkgs --update` command to update the package;
92+
4. Enter `scons --target=mdk4/mdk5/iar` command to regenerate the project.
93+
94+
Learn how to use RT-Thread ENV, click [Here](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/env/env.md).
95+
96+
97+
98+
## Maintained By
99+
100+
Meco Man @ RT-Thread Community
101+
102+
103+
104+
https://github.com/mysterywolf

bsp/stm32/docs/figures/putty.png

20.4 KB
Loading
103 KB
Loading

0 commit comments

Comments
 (0)