GD32 DevSuite
English | 中文
面向 GD32 MCU 开发的一体化 VS Code 扩展 —— 涵盖工程管理、构建配置、固件烧录与源码级调试。
功能特性
- 工程向导 —— 基于模板创建 GD32 MCU 工程,并自动生成 CMake 配置。
- 工程属性 —— 可视化编辑编译选项、优化等级、链接选项与预处理宏定义。
- 构建 —— 集成 CMake + ARM GCC 工具链,支持 Debug / Release 多配置。
- 烧录与擦除 —— 通过 J-Link 或 GD-Link 对目标板烧录固件或擦除芯片。
- 源码级调试 —— 基于 GDB(J-Link / GD-Link),支持断点、单步执行,以及完整的调用栈与变量查看。
- 外设寄存器 —— 调试过程中实时查看并修改外设寄存器及位域,支持一键切换 Hex / Dec / Bin 显示。
- 反汇编与内存 —— 调试时可通过编辑器右键菜单打开反汇编视图和原始内存面板。
- 设备管理 —— 扫描已连接的 J-Link / GD-Link 调试器并查看其状态;烧录/调试所使用的调试器由当前工程的
.project.json 决定。
- MCP 服务(AI 辅助开发) —— 扩展自动向 VS Code 提供
mcudeva(工程构建、固件烧录/擦除、GDB 调试、外设寄存器查询等)和 mcudeva-serial(串口收发与抓取)两个 MCP 服务,无需手写 mcp.json,即可在 Copilot Chat 的 Agent 模式中通过自然语言完成编译、烧录、调试与串口验证(需要 VS Code 1.101+;低版本 VS Code 或其他 AI 客户端请参考用户手册“MCP Server 配置流程”一章手动配置 mcp.json)。
快速开始
首次安装后会自动打开 GD32 快速上手 引导页(可通过命令面板 GD32: 快速上手指引 或 GD32 Explorer 主功能视图中的 快速上手指引 再次打开;引导页内勾选“启动时不再显示”可关闭自动弹出)。
- 安装 GD32 DevSuite 扩展。
- 打开 GD32 Explorer 视图,查看 Environment Check(环境检查),确认所需工具(CMake、Ninja、ARM GCC 工具链等)均已安装。
- 运行 GD32: Toolchain Configuration 配置工具路径。
- 使用 GD32: New Project 创建新的 GD32 MCU 工程。
- 构建、擦除并烧录,开始开发你的 MCU 应用。
快捷键
F7 —— 构建工程
Ctrl+F7 —— 擦除
Ctrl+F8 —— 烧录
F5 —— 调试
Ctrl+F9 —— 工程属性
运行要求
- VS Code
1.80.0 或更高版本(使用 MCP 服务需要 1.101 及以上)
- Windows 10/11
- 烧录/调试流程需要 GD32 目标板及 J-Link 或 GD-Link 调试器
支持的芯片
支持基于 Arm Cortex-M 内核的所有 GD32 系列(暂不支持 RISC-V 器件):
| 系列 |
型号 |
| GD32A |
A10x, A490, A508, A50x, A513 |
| GD32C |
C10x, C11x, C2x1 |
| GD32E |
E10x, E11x, E232, E23x, E25x, E501, E502, E50x, E511/E512, E51x, E53x |
| GD32F |
F10x, F1x0, F20x, F30x, F3x0, F403, F4xx, F50x, F527 |
| GD32G |
G5x3 |
| GD32H |
H71x/H72x, H73x/H75x, H75E |
| GD32L / M / W |
L23x, M53x, W51x |
反馈
请发送邮件至 gd32mcusoftware@gigadevice.com,或访问 gd32mcu.com。
也可以到 GD32 社区论坛 提问和反馈。
GD32 DevSuite (English)
中文 | English
An all-in-one VS Code extension from GigaDevice for GD32 MCU development —
project creation, CMake build, firmware flashing, and source-level debugging.
Features
- Project Wizard — Create GD32 MCU projects from templates with CMake
configuration generated automatically.
- Project Properties — Visually edit compiler flags, optimization level,
linker options, and preprocessor defines.
- Build — Integrated CMake + ARM GCC toolchain, with Debug / Release
multi-configuration support.
- Flash & Erase — Program firmware to, or erase, the target board through
J-Link or GD-Link.
- Source-Level Debug — GDB-based debugging (J-Link / GD-Link) with
breakpoints, stepping, and full call-stack / variable inspection.
- Peripheral Registers — Inspect and edit peripheral registers and bit
fields live during a debug session, with one-click Hex / Dec / Bin display
switching.
- Disassembly & Memory — Open a disassembly view and a raw memory panel
from the editor context menu while debugging.
- Device Management — Scan connected J-Link / GD-Link probes and
view their status; The active probe for flash/debug is chosen
by the current project's
.project.json.
- MCP Servers (AI-assisted development) — The extension automatically
provides two MCP servers to VS Code:
mcudeva (project build, firmware
flash/erase, GDB debugging, peripheral register lookup, etc.) and
mcudeva-serial (serial port send/receive/capture). No manual mcp.json
is needed — use natural language in Copilot Chat Agent mode to build, flash,
debug, and verify over serial (requires VS Code 1.101+; for older VS Code
versions or other AI clients, configure mcp.json manually as described in
the "MCP Server Configuration" chapter of the User Manual).
Getting Started
On first install the GD32 Quick Start guide opens automatically (reopen it any time
via the command palette GD32: Quick Start Guide or the Quick Start Guide entry in the
GD32 Explorer main view; tick "Don't show on startup" in the guide to disable auto-open).
- Install this GD32 DevSuite extension.
- Open the GD32 Explorer view and check Environment Check — make sure
all required tools (CMake, Ninja, ARM GCC toolchain ...) are installed.
- Run GD32: Toolchain Configuration to set the tool paths.
- Use GD32: New Project to create a new GD32 MCU project.
- Build, erase and flash to develop your MCU application.
Shortcuts
F7 — Build Project
Ctrl+F7 — Erase
Ctrl+F8 — Flash
F5 — Debug
Ctrl+F9 — Project Properties
Supported Chips
Arm Cortex-M based GD32 series (RISC-V devices are not supported yet):
| Family |
Series |
| GD32A |
A10x, A490, A508, A50x, A513 |
| GD32C |
C10x, C11x, C2x1 |
| GD32E |
E10x, E11x, E232, E23x, E25x, E501, E502, E50x, E511/E512, E51x, E53x |
| GD32F |
F10x, F1x0, F20x, F30x, F3x0, F403, F4xx, F50x, F527 |
| GD32G |
G5x3 |
| GD32H |
H71x/H72x, H73x/H75x, H75E |
| GD32L / M / W |
L23x, M53x, W51x |
Requirements
- VS Code
1.80.0 or newer (1.101 or newer for the MCP servers)
- Windows 10/11
- A GD32 target board and a J-Link or GD-Link probe for flash/debug workflows
Feedback
Report issues or suggestions to gd32mcusoftware@gigadevice.com, or visit
gd32mcu.com.
You can also post questions and feedback in the
GD32 Community Forum.
| |