# gd32f303_gcc **Repository Path**: myliujiuri/gd32f303_gcc ## Basic Information - **Project Name**: gd32f303_gcc - **Description**: GD32 GCC工程模板 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-01-22 - **Last Updated**: 2025-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gd32f30x firmware library with gcc and makefile support This is pre-converted gd32f30x firmware library with gcc and makefile support from GigaDevice official 'gd32f30x_Firmware_Library_V2.2.4.rar'. For more information about how to use this library, refer to [this tutorial](https://github.com/cjacker/opensource-toolchain-stm32). This firmware library support gd32f103/105/107 parts from GigaDevice: The default part is set to 'gd32f103cbt6' for [WeAct GD32 Bluepill Plus](https://github.com/WeActStudio/WeActStudio.BluePill-Plus-GD32). The default 'User' codes is blinking the LED connect to PB2. To build the project, type `make`. # to support other parts To support other gd32f30x parts, you need: - change 'Firmware/Ld/Link.ld', set FLASH and RAM size according to your MCU. - choose correct startup asm file and change the 'ASM_SOURCES' in 'Makefile' + Firmware/CMSIS/GD/gd32f30x/Source/GCC/startup_gd32f30x_cl.S : for 105 and 107 + Firmware/CMSIS/GD/gd32f30x/Source/GCC/startup_gd32f30x_hd.S : for flash size range from 256K to 512K + Firmware/CMSIS/GD/gd32f30x/Source/GCC/startup_gd32f30x_md.S : for flash size range from 16K to 128K + Firmware/CMSIS/GD/gd32f30x/Source/GCC/startup_gd32f30x_xd.S : for flash size > 512K - change `-Dgd32f30x_MD` C_DEFS in 'Makefile' to `MD`, `HD`, `XD` or `CL` according to your MCU. - change the 'TARGET' in 'Makefile'