Skip to content

Commit 62a37c0

Browse files
authored
Merge pull request #4010 from mysterywolf/doc-f072
【English readme】[bsp][stm32][f072-nucleo] add English version readme
2 parents 36df618 + a2c9c85 commit 62a37c0

File tree

2 files changed

+171
-61
lines changed

2 files changed

+171
-61
lines changed
Lines changed: 66 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,110 @@
1-
# NUCLEO-F072RB 开发板 BSP 说明
1+
# STM32F072-Nucleo BSP Introduction
22

3-
## 简介
3+
[中文](README_zh.md)
44

5-
本文档为刘恒为 NUCLEO-F072RB 开发板提供的 BSP (板级支持包) 说明。
5+
## MCU: STM32F072RB @48MHz, 128KB FLASH, 16KB RAM
66

7-
主要内容如下:
7+
The STM32F072x8/xB microcontrollers incorporate the high-performance ARM®Cortex®-M0 32-bit RISC core operating at up to 48 MHz frequency, high-speed embedded memories (up to 128 Kbytes of Flash memory and 16 Kbytes of SRAM), and an extensive range of enhanced peripherals and I/Os. All devices offer standard communication interfaces (two I2Cs, two SPI/I2S, one HDMI CEC and four USARTs), one USB Full-speed device (crystal-less), one CAN, one 12-bit ADC, one 12-bit DAC with two channels, seven 16-bit timers, one 32-bit timer and an advanced-control PWM timer.
88

9-
- 开发板资源介绍
10-
- BSP 快速上手
11-
- 进阶使用方法
9+
The STM32F072x8/xB microcontrollers operate in the -40 to +85 °C and -40 to +105 °C temperature ranges, from a 2.0 to 3.6 V power supply. A comprehensive set of power-saving modes allows the design of low-power applications.
10+
The STM32F072x8/xB microcontrollers include devices in seven different packages ranging from 48 pins to 100 pins with a die form also available upon request. Depending on the device chosen, different sets of peripherals are included.
11+
These features make the STM32F072x8/xB microcontrollers suitable for a wide range of applications such as application control and user interfaces, hand-held equipment, A/V receivers and digital TV, PC peripherals, gaming and GPS platforms, industrial applications, PLCs, inverters, printers, scanners, alarm systems, video intercoms and HVACs.
1212

13-
通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
13+
#### KEY FEATURES
1414

15-
## 开发板介绍
15+
- Core: ARM®32-bit Cortex®-M0 CPU, frequency up to 48 MHz
1616

17-
NUCLEO-F072RB 是 ST 官方推出的开发板,搭载 STM32F072RBT6 芯片,基于 ARM Cortex-M0 内核,最高主频 48 MHz,具有丰富的板载资源,可以充分发挥 STM32F072RBT6 的芯片性能。
17+
- Memories
1818

19-
开发板外观如下图所示:
19+
- 64 to 128 Kbytes of Flash memory
20+
- 16 Kbytes of SRAM with HW parity
2021

21-
![board](figures/board.jpg)
22+
- CRC calculation unit
2223

23-
NUCLEO-F072RB 开发板常用 **板载资源** 如下:
24+
- Reset and power management
2425

25-
- MCU:STM32F072RBT6,主频 48MHz,128KB FLASH ,16KB RAM
26-
- 常用外设
27-
- LED:3 个,USB communication (LD1), user LED (LD2), power LED (LD3) 。
28-
- 按键:2 个,USER and RESET 。
29-
- 常用接口:USB 转串口、Arduino Uno 和 ST morpho 两类扩展接口
30-
- 调试接口:板载 ST-LINK/V2-1 调试器。
26+
- Digital and I/O supply: VDD= 2.0 V to 3.6 V
27+
- Analog supply: VDDA= VDDto 3.6 V
28+
- Selected I/Os: VDDIO2= 1.65 V to 3.6 V
29+
- Power-on/Power down reset (POR/PDR)
30+
- Programmable voltage detector (PVD)
31+
- Low power modes: Sleep, Stop, Standby
32+
- VBATsupply for RTC and backup registers
3133

32-
开发板更多详细信息请参考意法半导体[NUCLEO-F072RB](https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-f072rb.html)
34+
- Clock management
3335

34-
## 外设支持
36+
- 4 to 32 MHz crystal oscillator
37+
- 32 kHz oscillator for RTC with calibration
38+
- Internal 8 MHz RC with x6 PLL option
39+
- Internal 40 kHz RC oscillator
40+
- Internal 48 MHz oscillator with automatic trimming based on ext. synchronization
3541

36-
本 BSP 目前对外设的支持情况如下:
42+
- Up to 87 fast I/Os
3743

38-
| **片上外设** | **支持情况** | **备注** |
39-
| :------------ | :----------: | :-----------------------------------: |
40-
| GPIO | 支持 | PA0, PA1... PH1 ---> PIN: 0, 1...63 |
41-
| UART | 支持 | UART2 |
42-
| LED | 支持 | LED2 |
44+
- All mappable on external interrupt vectors
45+
- Up to 68 I/Os with 5V tolerant capability and 19 with independent supply VDDIO2
4346

44-
## 使用说明
47+
- Seven-channel DMA controller
4548

46-
使用说明分为如下两个章节:
49+
- One 12-bit, 1.0 μs ADC (up to 16 channels)
4750

48-
- 快速上手
51+
- Conversion range: 0 to 3.6 V
52+
- Separate analog supply: 2.4 V to 3.6 V
4953

50-
本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
54+
- One 12-bit D/A converter (with 2 channels)
5155

52-
- 进阶使用
56+
- Two fast low-power analog comparators with programmable input and output
5357

54-
本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
58+
- Up to 24 capacitive sensing channels for touchkey, linear and rotary touch sensors
5559

60+
- Calendar RTC with alarm and periodic wakeup from Stop/Standby
5661

57-
### 快速上手
62+
- 12 timers
5863

59-
本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,并且支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
64+
- One 16-bit advanced-control timer for six-channel PWM output
65+
- One 32-bit and seven 16-bit timers, with up to four IC/OC, OCN, usable for IR control decoding or DAC control
66+
- Independent and system watchdog timers
67+
- SysTick timer
6068

61-
#### 硬件连接
69+
- Communication interfaces
6270

63-
使用 Type-A to Mini-B 线连接开发板和 PC 供电,红色 LED LD3 (PWR) 和 LD1 (COM) 会点亮。
71+
- Two I2C interfaces supporting Fast Mode Plus (1 Mbit/s) with 20 mA current sink, one supporting SMBus/PMBus and wakeup
72+
- Four USARTs supporting master synchronous SPI and modem control, two with ISO7816 interface, LIN, IrDA, auto baud rate detection and wakeup feature
73+
- Two SPIs (18 Mbit/s) with 4 to 16 programmable bit frames, and with I2S interface multiplexed
74+
- CAN interface
75+
- USB 2.0 full-speed interface, able to run from internal 48 MHz oscillator and with BCD and LPM support
6476

65-
#### 编译下载
77+
- HDMI CEC wakeup on header reception
6678

67-
双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。
79+
- Serial wire debug (SWD)
6880

69-
> 工程默认配置使用 ST-LINK 下载程序,点击下载按钮即可下载程序到开发板。
81+
- 96-bit unique ID
7082

71-
#### 运行结果
83+
- All packages ECOPACK®2
7284

73-
下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,红色 LD3 和 LD1 常亮、绿色 LD2 会周期性闪烁。
7485

75-
USB 虚拟 COM 端口默认连接串口 2,在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
7686

77-
```
78-
\ | /
79-
- RT - Thread Operating System
80-
/ | \ 4.0.2 build May 30 2019
81-
2006 - 2019 Copyright by rt-thread team
82-
msh >
83-
```
87+
## Read more
8488

85-
### 进阶使用
89+
| Documents | Description |
90+
| :----------------------------------------------------------: | :----------------------------------------------------------: |
91+
| [STM32_Nucleo-64_BSP_Introduction](../docs/STM32_Nucleo-64_BSP_Introduction.md) | How to run RT-Thread on STM32 Nucleo-64 boards (**Must-Read**) |
92+
| [STM32F072RB ST Official Website](https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-mainstream-mcus/stm32f0-series/stm32f0x2/stm32f072rb.html#documentation) | STM32F072RB datasheet and other resources |
8693

87-
此 BSP 默认只开启了 GPIO 和 串口 2 的功能,更多高级功能需要利用 env 工具对 BSP 进行配置,步骤如下:
8894

89-
1. 在 bsp 下打开 env 工具。
9095

91-
2. 输入`menuconfig`命令配置工程,配置好之后保存退出。
96+
## Maintained By
9297

93-
3. 输入`pkgs --update`命令更新软件包。
98+
[刘恒](https://github.com/lhxzui)
9499

95-
4. 输入`scons --target=mdk4/mdk5/iar` 命令重新生成工程。
100+
96101

97-
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)
98102

99-
## 注意事项
100103

101-
## 联系人信息
104+
## Translated By
102105

103-
维护人:
106+
Meco Man @ RT-Thread Community
104107

105-
- [刘恒](https://github.com/lhxzui), 邮箱:<[email protected]>
108+
109+
>
110+
> https://github.com/mysterywolf
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# NUCLEO-F072RB 开发板 BSP 说明
2+
3+
## 简介
4+
5+
本文档为刘恒为 NUCLEO-F072RB 开发板提供的 BSP (板级支持包) 说明。
6+
7+
主要内容如下:
8+
9+
- 开发板资源介绍
10+
- BSP 快速上手
11+
- 进阶使用方法
12+
13+
通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
14+
15+
## 开发板介绍
16+
17+
NUCLEO-F072RB 是 ST 官方推出的开发板,搭载 STM32F072RBT6 芯片,基于 ARM Cortex-M0 内核,最高主频 48 MHz,具有丰富的板载资源,可以充分发挥 STM32F072RBT6 的芯片性能。
18+
19+
开发板外观如下图所示:
20+
21+
![board](figures/board.jpg)
22+
23+
NUCLEO-F072RB 开发板常用 **板载资源** 如下:
24+
25+
- MCU:STM32F072RBT6,主频 48MHz,128KB FLASH ,16KB RAM
26+
- 常用外设
27+
- LED:3 个,USB communication (LD1), user LED (LD2), power LED (LD3) 。
28+
- 按键:2 个,USER and RESET 。
29+
- 常用接口:USB 转串口、Arduino Uno 和 ST morpho 两类扩展接口
30+
- 调试接口:板载 ST-LINK/V2-1 调试器。
31+
32+
开发板更多详细信息请参考意法半导体[NUCLEO-F072RB](https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-f072rb.html)
33+
34+
## 外设支持
35+
36+
本 BSP 目前对外设的支持情况如下:
37+
38+
| **片上外设** | **支持情况** | **备注** |
39+
| :------------ | :----------: | :-----------------------------------: |
40+
| GPIO | 支持 | PA0, PA1... PH1 ---> PIN: 0, 1...63 |
41+
| UART | 支持 | UART2 |
42+
| LED | 支持 | LED2 |
43+
44+
## 使用说明
45+
46+
使用说明分为如下两个章节:
47+
48+
- 快速上手
49+
50+
本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
51+
52+
- 进阶使用
53+
54+
本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
55+
56+
57+
### 快速上手
58+
59+
本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,并且支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
60+
61+
#### 硬件连接
62+
63+
使用 Type-A to Mini-B 线连接开发板和 PC 供电,红色 LED LD3 (PWR) 和 LD1 (COM) 会点亮。
64+
65+
#### 编译下载
66+
67+
双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。
68+
69+
> 工程默认配置使用 ST-LINK 下载程序,点击下载按钮即可下载程序到开发板。
70+
71+
#### 运行结果
72+
73+
下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,红色 LD3 和 LD1 常亮、绿色 LD2 会周期性闪烁。
74+
75+
USB 虚拟 COM 端口默认连接串口 2,在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
76+
77+
```
78+
\ | /
79+
- RT - Thread Operating System
80+
/ | \ 4.0.2 build May 30 2019
81+
2006 - 2019 Copyright by rt-thread team
82+
msh >
83+
```
84+
85+
### 进阶使用
86+
87+
此 BSP 默认只开启了 GPIO 和 串口 2 的功能,更多高级功能需要利用 env 工具对 BSP 进行配置,步骤如下:
88+
89+
1. 在 bsp 下打开 env 工具。
90+
91+
2. 输入`menuconfig`命令配置工程,配置好之后保存退出。
92+
93+
3. 输入`pkgs --update`命令更新软件包。
94+
95+
4. 输入`scons --target=mdk4/mdk5/iar` 命令重新生成工程。
96+
97+
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)
98+
99+
## 注意事项
100+
101+
## 联系人信息
102+
103+
维护人:
104+
105+
- [刘恒](https://github.com/lhxzui), 邮箱:<[email protected]>

0 commit comments

Comments
 (0)