|
1 | | -# NUCLEO-F072RB 开发板 BSP 说明 |
| 1 | +# STM32F072-Nucleo BSP Introduction |
2 | 2 |
|
3 | | -## 简介 |
| 3 | +[中文](README_zh.md) |
4 | 4 |
|
5 | | -本文档为刘恒为 NUCLEO-F072RB 开发板提供的 BSP (板级支持包) 说明。 |
| 5 | +## MCU: STM32F072RB @48MHz, 128KB FLASH, 16KB RAM |
6 | 6 |
|
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. |
8 | 8 |
|
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. |
12 | 12 |
|
13 | | -通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。 |
| 13 | +#### KEY FEATURES |
14 | 14 |
|
15 | | -## 开发板介绍 |
| 15 | +- Core: ARM®32-bit Cortex®-M0 CPU, frequency up to 48 MHz |
16 | 16 |
|
17 | | -NUCLEO-F072RB 是 ST 官方推出的开发板,搭载 STM32F072RBT6 芯片,基于 ARM Cortex-M0 内核,最高主频 48 MHz,具有丰富的板载资源,可以充分发挥 STM32F072RBT6 的芯片性能。 |
| 17 | +- Memories |
18 | 18 |
|
19 | | -开发板外观如下图所示: |
| 19 | + - 64 to 128 Kbytes of Flash memory |
| 20 | + - 16 Kbytes of SRAM with HW parity |
20 | 21 |
|
21 | | - |
| 22 | +- CRC calculation unit |
22 | 23 |
|
23 | | -NUCLEO-F072RB 开发板常用 **板载资源** 如下: |
| 24 | +- Reset and power management |
24 | 25 |
|
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 |
31 | 33 |
|
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 |
33 | 35 |
|
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 |
35 | 41 |
|
36 | | -本 BSP 目前对外设的支持情况如下: |
| 42 | +- Up to 87 fast I/Os |
37 | 43 |
|
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 |
43 | 46 |
|
44 | | -## 使用说明 |
| 47 | +- Seven-channel DMA controller |
45 | 48 |
|
46 | | -使用说明分为如下两个章节: |
| 49 | +- One 12-bit, 1.0 μs ADC (up to 16 channels) |
47 | 50 |
|
48 | | -- 快速上手 |
| 51 | + - Conversion range: 0 to 3.6 V |
| 52 | + - Separate analog supply: 2.4 V to 3.6 V |
49 | 53 |
|
50 | | - 本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。 |
| 54 | +- One 12-bit D/A converter (with 2 channels) |
51 | 55 |
|
52 | | -- 进阶使用 |
| 56 | +- Two fast low-power analog comparators with programmable input and output |
53 | 57 |
|
54 | | - 本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。 |
| 58 | +- Up to 24 capacitive sensing channels for touchkey, linear and rotary touch sensors |
55 | 59 |
|
| 60 | +- Calendar RTC with alarm and periodic wakeup from Stop/Standby |
56 | 61 |
|
57 | | -### 快速上手 |
| 62 | +- 12 timers |
58 | 63 |
|
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 |
60 | 68 |
|
61 | | -#### 硬件连接 |
| 69 | +- Communication interfaces |
62 | 70 |
|
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 |
64 | 76 |
|
65 | | -#### 编译下载 |
| 77 | +- HDMI CEC wakeup on header reception |
66 | 78 |
|
67 | | -双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。 |
| 79 | +- Serial wire debug (SWD) |
68 | 80 |
|
69 | | -> 工程默认配置使用 ST-LINK 下载程序,点击下载按钮即可下载程序到开发板。 |
| 81 | +- 96-bit unique ID |
70 | 82 |
|
71 | | -#### 运行结果 |
| 83 | +- All packages ECOPACK®2 |
72 | 84 |
|
73 | | -下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,红色 LD3 和 LD1 常亮、绿色 LD2 会周期性闪烁。 |
74 | 85 |
|
75 | | -USB 虚拟 COM 端口默认连接串口 2,在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息: |
76 | 86 |
|
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 |
84 | 88 |
|
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 | |
86 | 93 |
|
87 | | -此 BSP 默认只开启了 GPIO 和 串口 2 的功能,更多高级功能需要利用 env 工具对 BSP 进行配置,步骤如下: |
88 | 94 |
|
89 | | -1. 在 bsp 下打开 env 工具。 |
90 | 95 |
|
91 | | -2. 输入`menuconfig`命令配置工程,配置好之后保存退出。 |
| 96 | +## Maintained By |
92 | 97 |
|
93 | | -3. 输入`pkgs --update`命令更新软件包。 |
| 98 | +[刘恒](https://github.com/lhxzui) |
94 | 99 |
|
95 | | -4. 输入`scons --target=mdk4/mdk5/iar` 命令重新生成工程。 |
| 100 | + |
96 | 101 |
|
97 | | -本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)。 |
98 | 102 |
|
99 | | -## 注意事项 |
100 | 103 |
|
101 | | -## 联系人信息 |
| 104 | +## Translated By |
102 | 105 |
|
103 | | -维护人: |
| 106 | +Meco Man @ RT-Thread Community |
104 | 107 |
|
105 | | -- [刘恒 ](https://github.com/lhxzui), 邮箱: <[email protected]> |
| 108 | + |
| 109 | +> |
| 110 | +> https://github.com/mysterywolf |
0 commit comments