PlatformIO+GD32

发布时间 2024-01-10 19:04:53作者: biiigwang

PlatformIO+GD32

想要对GD32进行开发,需要在PlatformIO中添加GD32的芯片支持,GD32官方支持库存在于Github,原文如下:

See example projects at https://github.com/CommunityGD32Cores/gd32-pio-projects.

The platform can be installed manually using pio platform install https://github.com/CommunityGD32Cores/platform-gd32.git​ on the CLI. This is done automatically when compiling one of the example projects.

需要在PlatformIO终端内执行如下命令:

pio platform install https://github.com/CommunityGD32Cores/platform-gd32.git

vscode中打开终端的方法为:

  1. cmd+shift+p​打开命令窗口
  2. 输入PlatformIO: Open PlatformIO Core CLI
  3. 在打开的终端中执行上述命令

image