• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

applications/21-Aug-2025-

board/21-Aug-2025-

figures/21-Aug-2025-

.config A D21-Aug-202546.7 KiB1,4301,318

.gitignore A D21-Aug-2025365 4342

Kconfig A D21-Aug-2025497 2820

README.md A D21-Aug-20253.5 KiB6147

README_zh.md A D21-Aug-20253.7 KiB11665

SConscript A D21-Aug-2025370 1813

SConstruct A D21-Aug-20252.4 KiB7557

project.uvoptx A D21-Aug-20255.8 KiB193185

project.uvprojx A D21-Aug-202544.8 KiB1,2441,243

rtconfig.h A D21-Aug-20258.5 KiB42683

rtconfig.py A D21-Aug-20255.2 KiB185143

template.uvoptx A D21-Aug-20255.8 KiB193185

template.uvprojx A D21-Aug-202514.4 KiB412405

README.md

1# STM32g030-tiny-board BSP Introduction
2
3[中文](README_zh.md)
4
5### Description
6
7The STM32G030x6/x8 mainstream microcontrollers are based on high-performance Arm® Cortex®-M0+ 32-bit RISC core operating at up to 64 MHz frequency. Offering a high level of integration, they are suitable for a wide range of applications in consumer, industrial and appliance domains and ready for the Internet of Things (IoT) solutions.
8
9The devices incorporate a memory protection unit (MPU), high-speed embedded memories (8 Kbytes of SRAM and up to 64 Kbytes of Flash program memory with read protection, write protection), DMA, an extensive range of system functions, enhanced I/Os, and peripherals. The devices offer standard communication interfaces (two I2Cs, two SPIs / one I2S, and two USARTs), one 12-bit ADC (2.5 MSps) with up to 19 channels, a low-power RTC, an advanced control PWM timer, four general-purpose 16-bit timers, two watchdog timers, and a SysTick timer.
10
11The devices operate within ambient temperatures from -40 to 85°C and with supply voltages from 2.0 V to 3.6 V. Optimized dynamic consumption combined with a comprehensive set of power-saving modes allows the design of low-power applications.
12
13VBAT direct battery input allows keeping RTC and backup registers powered.
14
15The devices come in packages with 8 to 48 pins.
16
17### All features
18
19- Core: Arm® 32-bit Cortex®-M0+ CPU, frequency up to 64 MHz
20- -40°C to 85°C operating temperature
21- Memories
22  - Up to 64 Kbytes of Flash memory with protection
23  - 8 Kbytes of SRAM with HW parity check
24- CRC calculation unit
25- Reset and power management
26  - Voltage range: 2.0 V to 3.6 V
27  - Power-on/Power-down reset (POR/PDR)
28  - Low-power modes:Sleep, Stop, Standby
29  - VBAT supply for RTC and backup registers
30- Clock management
31  - 4 to 48 MHz crystal oscillator
32  - 32 kHz crystal oscillator with calibration
33  - Internal 16 MHz RC with PLL option
34  - Internal 32 kHz RC oscillator (±5 %)
35- Up to 44 fast I/Os
36  - All mappable on external interrupt vectors
37  - Multiple 5 V-tolerant I/Os
38
39- 5-channel DMA controller with flexible mapping
40- 12-bit, 0.4 µs ADC (up to 16 ext. channels)
41  - Up to 16-bit with hardware oversampling
42  - Conversion range: 0 to 3.6V
43- 8 timers: 16-bit for advanced motor control, four 16-bit general-purpose, two watchdogs, SysTick timer
44- Calendar RTC with alarm and periodic wakeup from Stop/Standby
45- Communication interfaces
46  - Two I2C-bus interfaces supporting Fast-mode Plus (1 Mbit/s) with extra current sink, one supporting SMBus/PMBus and wakeup from Stop mode
47  - Two USARTs with master/slave synchronous SPI; one supporting ISO7816 interface, LIN, IrDA capability, auto baud rate detection and wakeup feature
48  - Two SPIs (32 Mbit/s) with 4- to 16-bit programmable bitframe, one multiplexed with I2S interface
49- Development support: serial wire debug (SWD)
50- All packages ECOPACK 2 compliant
51
52## Read more
53
54|                          Documents                           |                         Description                          |
55| :----------------------------------------------------------: | :----------------------------------------------------------: |
56| [STM32_Nucleo-144_BSP_Introduction](../docs/STM32_Nucleo-144_BSP_Introduction.md) | How to run RT-Thread on STM32 Nucleo-144 boards (**Must-Read**) |
57| [STM32G030C8 ST Official Website](https://www.st.com/en/microcontrollers-microprocessors/stm32g030c8.html) |          STM32G030C8 datasheet and other resources           |
58
59## Maintained By
60
61[hywing](https://github.com/hywing)

README_zh.md

1# STM32g030-tiny-board 开发板 BSP 说明
2
3## 简介
4
5本文档为 hywing为 STM32g030-tiny-board 开发板提供的 BSP (板级支持包) 说明。
6
7主要内容如下:
8
9- 开发板资源介绍
10- BSP 快速上手
11- 进阶使用方法
12
13通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
14
15## 开发板介绍
16
17STM32g030-tiny-board 是一款基于 ARM Cortex-M0 内核的开发板,最高主频为 64Mhz,该开发板具有丰富的板载资源,可以充分发挥 STM32G030C8T6 的芯片性能。
18
19开发板外观如下图所示:
20
21![board](figures/board.jpg)
22
23该开发板常用 **板载资源** 如下:
24
25- MCU:STM32G030C8T6,主频64MHz,64KB FLASH ,8K RAM
26- 调试接口,标准 JTAG/SWD
27
28## 外设支持
29
30本 BSP 目前对外设的支持情况如下:
31
32| **板载外设**      | **支持情况** | **备注**                              |
33| :----------------- | :----------: | :------------------------------------- |
34| USB 转串口        |     支持     ||
35| **片上外设**      | **支持情况** | **备注**                              |
36| GPIO              |     支持     | |
37| UART              |     支持     |   UART1                                   |
38
39
40## 使用说明
41
42使用说明分为如下两个章节:
43
44- 快速上手
45
46    本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
47
48- 进阶使用
49
50    本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
51
52
53### 快速上手
54
55本 BSP 为开发者提供 MDK5工程,并且支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
56
57**请注意!!!**
58
59在执行编译工作前请先打开ENV执行以下指令(该指令用于拉取必要的HAL库及CMSIS库,否则无法通过编译):
60
61```bash
62pkgs --update
63```
64
65#### 硬件连接
66
67使用数据线连接开发板到 PC,打开电源开关。
68
69#### 编译下载
70
71双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。
72
73> 工程默认配置使用 ST_LINK 仿真器下载程序,在通过 ST_LINK 连接开发板的基础上,点击下载按钮即可下载程序到开发板
74
75#### 运行结果
76
77下载程序成功之后,系统会自动运行,LED循环点亮。
78
79连接开发板对应串口到 PC , 在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
80
81```bash
82
83 \ | /
84- RT -     Thread Operating System
85 / | \     5.2.0 build Dec  2 2024 11:35:30
86 2006 - 2024 Copyright by RT-Thread team
87
88msh >
89```
90### 进阶使用
91
92此 BSP 默认只开启了 GPIO 和 串口1的功能,如果需使用更多高级功能,需要利用 ENV 工具对BSP 进行配置,步骤如下:
93
941. 在 bsp 下打开 env 工具。
95
962. 输入`menuconfig`命令配置工程,配置好之后保存退出。
97
983. 输入`pkgs --update`命令更新软件包。
99
1004. 输入`scons --target=mdk5` 命令重新生成工程。
101
102本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)。
103
104## 注意事项
105
106- 调试串口为串口1 映射说明
107
108    PB6     ------> USART1_TX
109
110    PB7     ------> USART1_RX
111
112## 联系人信息
113
114维护人:
115
116-  [hywing](https://github.com/hywing)