Revealed! How to master GD32 MCU principles and firmware library development?
A technical monograph written with the participation of senior FAE from GigaDevice Innovation
"GD32MCU Principle and Firmware Library Development Guide"
Has been officially published by Machinery Industry Press!
Available simultaneously on Tmall, JD.com and other platforms!
▲ Click the direct purchase link on JD.com
Introduction to textbooks
This is a professional technical book that introduces the GD32 MCU firmware library from both the principle and practical perspectives. Through this book, you can not only quickly understand the development history of GD32 MCU and hardware-level MCU selection methods, master the methods of quickly building and debugging the basic hardware development environment, as well as the working principles and control methods of the MCU core system and peripherals, but also understand the real Project development and design process.
Therefore, whether you are GD32 MCU developers, enthusiasts, or other MCU developers, you can quickly get started with MCU design and put it into practice through this book. Readers who are interested in domestic MCUs can also learn about the underlying operating principles of MCUs through this book.
This book is divided into 8 chapters:
∎
Chapter 1 provides an overview of GD32 MCU’s original manufacturer, GigaDevice Innovations, and interprets the development history, product family and application selection of GD32 MCU to help readers gain an overall understanding of GD32 MCU and the overall situation of domestic MCUs.
∎
Chapter 2 introduces the software and hardware development platform, debugging tools, GD32 MCU firmware library architecture and how to use it to help readers get started quickly and use GD32 MCU.
∎
Chapters 3 and 4 provide an in-depth explanation of the GD32 MCU system architecture, core, memory system, power management system, and core modules such as reset and clock systems.
∎
Chapters 5 to 8 focus on analyzing the basic peripherals, analog peripherals and communication peripherals related to GD32 MCU, including GPIO, EXTI, DMA, TIMER, RTC, FWDGT/WWDGT, ADC, DAC, USART, I2C, SPI, CAN and USB etc.
About the Author
Yingshi Technology
The full name is Shenzhen Yingshi Technology Co., Ltd., which is an electronic technology enterprise integrating the application development, solutions, ecological construction and sales promotion of domestic brand chips. The company is committed to promoting the marketization of domestic semiconductor products, developing design solutions with independent intellectual property rights based on domestic chips and realizing productization. The company aims to continuously provide customers with high-quality products and solutions and continues to work hard to achieve this.
Dong Xiao
Graduated from Xi'an Jiaotong University, and has been engaged in power electronic product research and development since graduation. He has rich experience in product definition, hardware board design, software algorithm simulation and implementation, and embedded software development. Familiar with common 8051, C28x, Corex-M, RISC-V and other architecture microcontrollers on the market.
Ren Baohong
is the regional manager of GigaDevice’s innovative technical support. He has nearly 10 years of experience in MCU embedded development and has extensive experience in customer technical support. He is the author of "MSP430 Microcontroller Principles and Applications", which has been included in the "Thirteenth Five-Year Plan" textbooks for general higher education and has been well received by universities and related technical personnel.
Experts recommend
GigaDevice Innovation Technology Group Co., Ltd.
Jin Guangyi Product Marketing Director
This book promptly makes up for the shortcomings of Chinese MCU products in terms of monographs, and introduces chip principles and development practices in a simple and easy-to-understand manner. It can be used as an accessible technical reference for product planning and system design, and can also become a professional textbook and embedded system course. Training materials.
Shandong New Beiyang Information Technology Co., Ltd.
Wang Quanli Senior Architect
This textbook introduces the principles and applications of GigaDevice's innovative MCUs in a simple and easy-to-understand manner, and is suitable for reference by hardware designers.
1) Suitable for beginners to quickly understand the development history of GigaDevice’s innovative MCUs, as well as the key parameters for hardware-level MCU selection;
2) The introduction to the working principles and control methods of MCU basic peripherals is easy to understand, and can quickly build a basic hardware development environment and debug;
3) The examples in the book are of great reference value for project development and design.
A domestic semiconductor equipment manufacturing company
Zhao Shaoyi Chief Expert of Supply Chain System
The book's clear structure and content clearly explain the operating mechanism of GD32 MCU, providing valuable input for developers to further understand the product. At the same time, most domestic enterprises are in the process of establishing supply chain resilience, sustainable supply, and accelerating localization. The emergence of such product-specific books will effectively assist and empower grassroots development work, and its significance It is important to hope that more books introducing GigaDevice's innovative products will be published, providing a portal for the vast number of domestic market users to understand how products solve problems.
Leyard Group
Lu Changjun, Vice President and Technical Director of Leyard Group
I am very happy to see the first comprehensive and systematic introduction to domestic MCU textbooks available. This book allows school students and developers working in the MCU field to quickly grasp the principles and application methods of the domestic GD32 MCU. It is a textbook that is very closely integrated with product applications. I hope this book will be a great help in promoting the localization of chips in our country and solving the problem of chip "stuck".
Experiments and information packages
Through a series of basic experiments, this book introduces the framework structure and various basic peripherals of the GD32F303 series MCU from shallow to deep, providing a program reference for readers to learn and develop this series of MCUs. The experiment list is shown in the following table:
serial number |
Experiment name |
1 |
Turn on the running water lamp experiment |
2 |
Flash erasing experiment |
3 |
Power management experiment |
4 |
System clock configuration and output experiment |
5 |
Interrupt routine experiment |
6 |
Direct memory access experiment |
7 |
Timer output PWM and capture experiment |
8 |
real time clock experiment |
9 |
Watchdog timer experiment |
10 |
Analog-to-digital conversion and digital-to-analog conversion experiments |
11 |
Serial communication experiment |
12 |
Inter-integrated circuit bus interface communication experiment |
13 |
Synchronous serial peripheral interface communication experiment |
14 |
Controller Area Network Communication Experiment |
15 |
Universal Serial Bus Interface Experiment |
* Note: The above only briefly lists relevant experiments, and other related derivative experiments are not listed.
All experiments in this book include design ideas, code analysis, operation result analysis and the use of related tools, explaining every detail step by step. All experiments are derived from GD32F30x series firmware library routines. It allows readers to better develop and apply this series of MCUs. At the end of each chapter, the chapter is summarized so that readers can better grasp the gist of the chapter.
The example packages and development board schematics that come with this book are all available to readers:
Introduction to BluePill development board hardware platform
Most of the experiments in this book can be tested and verified on the BluePill development board. As shown in the figure below, the BluePill development board has a motherboard (baseboard) and daughter boards.
The BluePill daughter board is the GD32 MCU minimum system board, which mainly includes the MCU minimum system and USB communication and power supply modules.
The minimum MCU system in the BluePill development board mainly includes GD32F303CBT6 and external crystal oscillator circuit, pin interface circuit, NRST reset circuit, programming interface circuit, BOOT and LED circuit.
The pin interface circuit is the MCU pin interface derived from the daughter board to connect with the motherboard. The programming port is a SWD port with fewer pins and simple and convenient wiring. BOOT0 and PB2 (BOOT1) have a default 4.7kΩ resistor pulled down to VSS, that is, they will run from the main Flash after power on. If you need to enter the factory ISP Bootloader, you can power on while pressing K1, which means BOOT0 will be pulled high. electricity. LED1 is used to indicate VCC power-on status. LED1 is always on to indicate that VCC is powered on normally. LED2 is controlled by PC13. When PC13 outputs low level, the LED is on; when PC13 outputs high level, the LED is off. There is also a USB communication interface on the daughter board. As the USB module of GD32F303, it is a USBD peripheral and only supports it as a USB device. At the same time, the USB interface is converted to 3.3V through SE8533 LDO to power the MCU system.
The BluePill master board is an external hardware expansion board, which mainly includes USB to serial port circuit module, I2C EEPROM and communication circuit module, SPI Flash circuit module, CAN communication interface circuit module, ADC acquisition circuit module, button LED circuit module and MCU pin interface circuit Modules, etc., the baseboard has rich external hardware resources, which can be used for learning and experimenting with the internal and external devices of each chip.
Main parameters of BluePill development board
Parameters/resources |
BluePill development board |
size |
40*60*20mm |
PCB |
Master board (base board) + daughter board |
Master chip |
GD32F303CBT6/48PIN/128K Flash/32K SRAM |
Power interface |
Micro USB interface, SWD 3.3V, output 5V and GND interface |
Download interface |
SWD interface, serial ISP interface
|
GPIO |
All are led out through 2.54mm pitch pin headers |
EEPROM |
FT24C02A |
RTC |
1 CR1220 button battery |
SPI Flash |
GD25Q16ESIG, capacity 2MB |
USB |
Daughter board for USBD peripherals |
CAN |
1 channel, model SIT1050T |
button |
1 reset button, 1 BOOT0 high and low level button, 1 K1 hardware wake-up button, 1 K2 ordinary button |
LED light |
D1 is the power indicator LDE D2/D3/D4 are ordinary LEDs |
Serial Port |
Motherboard (backplane) USB to serial port |
View waveforms and communication data other interfaces |
I2C interface, serial port interface |
BluePill development board purchase channels and configuration list
Welcome to the GD32 flagship store for consultation and purchase of supporting development boards.
https://gd32.tmall.com/
▲ Please save the picture and scan the code in the APP to identify it
name |
quantity |
Motherboard (baseboard) |
1 |
Daughter board |
1 |
CR1220 button battery |
1 |
USB to Micro USB cable
|
1 |
dupont line |
4 |
Further reading
Review of Previous Periods
Several technical monographs on the theme of GD32 MCU have been published. Readers can refer to them according to actual usage needs:
Swipe left or right to view the GD32 MCU technical monograph introduction
Visit the new GD32MCU.com website now
Explore more GD32 MCU product information and solutions
There are more forum interactions waiting for you!
❖
Click to view more GD32MCU content
↓↓↓
(Follow GD32MCU)