当前位置:网站首页>Gd32f303 learning notes (1) -- setting up environment, compiling and writing
Gd32f303 learning notes (1) -- setting up environment, compiling and writing
2022-04-21 22:04:00 【Leung_ ManWah】
One 、 Set up the environment
1.1 Official information
1.2 install Keil 5
Download from the official website :http://www2.keil.com/mdk5/
Baidu SkyDrive :https://pan.baidu.com/s/1T_eF5NDYeq38bR0cqjiZkw Extraction code :562z
Alicloud disk :https://www.aliyundrive.com/s/giDvR2ShJR9
1.3 download SDK
Download from the official website :http://www.gd32mcu.com/data/documents/yingyongruanjian/GD32F30x_Firmware_Library_V2.1.3.rar

Baidu SkyDrive :https://pan.baidu.com/s/1pAcE826LG93o6FvQc4TJqQ?pwd=4uwd Extraction code :4uwd
1.4 install GD32 Packet
Be careful : To work with SDK The version corresponds to
Download from the official website :http://www.keil.com/dd2/Pack/#/third-party-download-dialog
choice GigaDevice GD32F30x Series Device Support and Examples

Baidu SkyDrive :https://pan.baidu.com/s/1TPE_pm9uAN6yKGi4h7UQfw?pwd=nhmg Extraction code :nhmg
Keil Internal Download :


Two 、 compile
Open the firmware library sample project Project
route :SDK\GD32F30x_Firmware_Library_V2.1.3\Template\Keil5_project\Prokect

-
Keil4 Convert to Keil5 engineering
By default ,GD The official routines are based on Keil v4 Version of , What we have installed is Keil v5 edition , There will be problems opening , The routines provided by our company have been converted into Keil v5 Version of , This can be distinguished by looking at the suffix of the project file ,uvprojx yes v5 edition ,uvproj yes v4 edition .

Keil v4 Project to Keil v5 The operation of version is as follows : single click “Migrate Version 5 Format”, that will do .

-
Choose chip model
So here I'm going to use theta GD32F303RCT6

-
Modify macro definition
GD32 Model selection table Find GD32F303RCT6

High density products (GD32F30X_HD) Refer to FLASH The memory capacity is
256KB to 512KBOf GD32F103xx Micro controller .
Ultra high density products (GD32F30X_XD) Refer to FLASH The memory capacity is512KB aboveOf GD32F303xx Micro controller .
Connected products (GD32F30X_CL) Refers to the product refers to GD32F305xx and GD32F307xx Micro controller .
therefore GD32F303RCT6 be in HD Products , Click on Options of Target stay C/C++ Options will Define GD32F30X_CL Change it to GD32F30X_HD.

- Click the button to compile

Here are the possible errors in the compilation process :
3、 ... and 、 burn
3.1 Keil Internal burning
3.1.1 J-Link burn
single click Options for Targe, Re selection Debug On the side is Use Box is
J-LINK Indicates that the selection is correct , Click again Settings, Will jump out with IDCODE Show , Indicates that the chip core has been found , If not shown , Check the... As indicated by the arrow in the figure Port Whether to select SW, also J-LINK Whether the drive is correct , Generally, the above troubleshooting can solve the problem , finally IDCODE Show , Explain the board hardware connection , The project configuration is correct , You can download it in the next step .


If I use theta JLink V8, You may encounter the problem that you can't burn normally , Reference resources resolvent : debugging NRF52832 Engineering time JLink Error message read:@0x02000004
3.1.2 ST-Link burn
- install ST-Link Downloader driver
Baidu SkyDrive :https://pan.baidu.com/s/1ZoXKAqjec9Bc6oN6_MNJyA?pwd=9181 Extraction code :9181
After downloading and decompressing, double-click stlink_winusb_install Installation . - choice ST-Link download
single click Options for Targe, Re selection Debug On the side is Use Box is
ST-LINK Indicates that the selection is correct , Click again Settings, Will jump out with IDCODE Show , Indicates that the chip core has been found , Board hardware connection , The project configuration is correct , Can be downloaded .



3.1.3 CMSIS-DAP burn
single click Options for Targe, Re selection Debug On the side is Use Box is
CMSIS-DAP Indicates that the selection is correct , Click again Settings, Will jump out with IDCODE Show , Indicates that the chip core has been found , The arrow points to Port Selected as SW, Speed selection 5MHz, Board hardware connection , The project configuration is correct , You can download it in the next step .


• from Leung Written in 2022 year 4 month 21 Japan
• Reference resources :GD32F303 Course 【1】 Build development environment
GD32F303 Debugging notes ( zero ) Project creation and compilation
版权声明
本文为[Leung_ ManWah]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212156046886.html
边栏推荐
- The @ select annotation is used in the mapper of mybtais, and the if annotation is used
- Oracle级联删除表(不受外键约束)
- UML integrated design example
- [ES6] function extension
- Architecture document of outsourcing student management system
- Oracle查询执行计划
- what? Your company has not set the JVM initial and maximum heap memory size to the same value?
- [test case level definition]
- Thread safety for the first time. This article is enough
- 外包学生管理系统的架构文档
猜你喜欢

Architecture document of outsourcing student management system

ROS——编译PCL相关程序报错:Could not find a package configuration file provided by “PCL“

解放双手,推荐一款阿里开源的低代码工具,YYDS~

During iPhone test, the picture of custom tabbar will slide along the screen

kotlin核心编程,Android开发面试解答之Handler

ROS - use OpenCV to send and receive cameras

Detailed explanation of redis configuration file
![[JVM] 10 interview questions](/img/68/6c1c24e8c847612412241a4cd4fe2e.png)
[JVM] 10 interview questions

JVM自定义类加载器在代码扩展性的实践

MySQL fuzzy search and proofreading rules
随机推荐
微信小程序怎么实现商品列表跳转商品详情页功能
What should you do to benefit from digital transformation?
The third floor of leetcode Langya list - the container with the most water
在线YAML转Properties工具
Jupyter notebook has no run button
一加连发两款耳机产品:充电10分钟 听歌20小时
Hard core strength, recognized by many parties | cloud expansion technology, as the core manufacturer of RPA, was selected into the 2022 China RPA procurement guide
【ES6】let和const命令
Online CSV to yaml tool
Serviceworker cache and HTTP cache
How does PHP add an array element to an array
面试必刷算法TOP101之背包九讲篇 TOP13
分析师认为三星Galaxy Z Fold 4和Z Flip 4可能比其前代产品更便宜
Because the epidemic makes the garment industry fully realize the necessity of digital transformation.
In depth analysis of static, const, volatile, extern and register keywords
软件测试流程与测试模型
Detailed explanation of redis configuration file
Outil CSV - YAML en ligne
[C language advanced level 9 - pointer advanced level (6) - callback function]
EventBridge 集成云服务实践