1699 views|2 replies

12

Posts

0

Resources
The OP
 

Chapter 2: Creation of Development Environment [Copy link]

This post was last edited by xiaoli2018 on 2022-1-29 20:47

The creation of a development environment is divided into two parts: IDE configuration and project creation.

IDE Configuration

First, set up the integrated development software. KEIL5 software provides different chip packages for different chips. Therefore, you need to install the relevant pack before using KEIL5 to program GD32.

There are two ways to install the Pack:

  1. Install using the installation package
  2. Online Installation

The method of using the installation package is the simplest, just double-click the file to automatically install it. The online installation method is more common, but sometimes it is not convenient to download in China.

The GD32 official website provides a ready-made Pack, so use the first method to install it. After the installation is complete, the status shown in the figure below is displayed.

Project Creation

The project is created using the template project provided by GD32. Double-click to open it and the following is displayed:

  • The Application folder contains the files that developers need to modify. main.c contains the main function, systick.c contains the tick interrupt processing function, and gd32l23x_it.c contains the interrupt processing function used.
  • CMSIS stores the CMSIS interface file provided by GD32, which mainly provides the SystemInit function for initializing the chip.
  • Peripheral stores the firmware library functions provided by GD32.
  • Startup provides the startup code for powering on the chip, which is in assembly language and is used to initialize the interrupt vector table, stack, call the initialization function and jump to the main function.
  • Utilities stores the peripheral initialization functions of the related boards.

The code that users need to modify is concentrated in the Application folder. The advantage of using a template project is that you don't need to configure KEIL's project options yourself.

Summarize

The above two steps have realized the creation of the GD32 development environment. Let's program happily.

The GD32L23x Pack and project template used in keil5 can be downloaded from the first evaluation article.

The first article is about downloading GD32L233C development resources

This post is from GD32 MCU

Latest reply

With template project files, programming is much easier   Details Published on 2022-1-29 08:22
 

6555

Posts

0

Resources
2
 

With template project files, programming is much easier

This post is from GD32 MCU

Comments

Yes, you don’t have to start from scratch.  Details Published on 2022-1-29 20:45
 
 
 

12

Posts

0

Resources
3
 
Jacktang posted on 2022-1-29 08:22 With the template project file, programming is much easier

Yes, you don’t have to start from scratch.

This post is from GD32 MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list