STM32cubeMX + VScode开发GD32移植(HAL库通用),保姆级!!!!!!!
文章目录
- [`STM32cubeMX + VScode开发GD32移植(HAL库通用),保姆级!!!!!!!`](#
STM32cubeMX + VScode开发GD32移植(HAL库通用),保姆级!!!!!!!
) - `如果对你有帮助,就点赞收藏把!(。・ω・。)ノ♡`
前言
原理就跟VScode开发GD32标准库版的一模一样
可以看笔者往期作品【VScode开发GD32移植(标准库通用),保姆级!!!!!!!】
使用STM32cubeMX是为了进一步简化开发
一、STM32cudeMX生成初始化代码MX_demo3
看过笔者往期作品【VScode开发GD32移植(标准库通用),保姆级!!!!!!!】
就知道需要准备的文件有
(1)、固件库文件
(2)、启动文件 和 链接文件
(3)、环境搭建文件
(4)、芯片包
其实,【VScode开发GD32移植(标准库通用),保姆级!!!!!!!】文章里面就有详细的教程


二、分析MX_demo3的文件
三、VScode配置
1、创建工程

2、MX文件复制到VScode工程里面

4、【项目资源】创建文件夹

5、【芯片包】【构建配置】【烧录配置】
根据自己实际情况来
实在不会看往期作品:【VScode开发GD32移植(标准库通用),保姆级!!!!!!!】

6、【项目属性】-【包含目录】和【预处理宏定义】

都可以在Makefile文件中找到
7、编译成功

报错1

解决方法
┈┈┈┈▕▔╲┈┈┈┈┈┈┈ ┈┈┈┈▕▔╲┈┈┈┈┈┈┈ ┈┈┈┈▕▔╲┈┈┈┈┈┈┈┈
┈┈┈┈┈▏▕┈┈┈┈┈┈┈ ┈┈┈┈┈▏▕┈┈┈┈┈┈┈ ┈┈┈┈┈▏▕┈┈┈┈┈┈┈ ┈
┈┈┈┈┈▏ ▕▂▂▂▂▂┈┈┈┈┈┈┈▏ ▕▂▂▂▂▂┈┈┈┈┈┈┈▏ ▕▂▂▂▂▂┈┈┈
▂▂▂▂╱┈┈▕▂▂▂▂▏┈ ▂▂▂▂╱┈┈▕▂▂▂▂▏┈ ▂▂▂▂╱┈┈▕▂▂▂▂▏┈┈
▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈ ▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈ ▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈
▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈ ▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈ ▉▉▉┈┈┈┈▕▂▂▂▂▏ ┈
▔▔▔▔╲▂▂▕▂▂▂▂▏┈ ▔▔▔▔╲▂▂▕▂▂▂▂▏┈ ▔▔▔▔╲▂▂▕▂▂▂▂▏┈┈