Skip to content

GD32F4xx firmware library v3.0.3 with gcc and makefile support. It can be used with JLC LiangShang Pi.

Notifications You must be signed in to change notification settings

ald2004/gd32f4xx_firmware_library_gcc_makefile

 
 

Repository files navigation

GD32F4xx firmware library with gcc and makefile support

This repo enable arm-none-eabi-gcc and Makefile support to GigaDevice GD32F4xx Firmware Library (v3.0.3 without any changes).

And the default linker script and startup asm file is for GD32F470ZGT6 to support development with JLC LiangShanPi.

GD32F4xx standard firmware library is suitable for GD32F4xx series MCU. The library is compatible with the CMSIS (Cortex-M Microcontroller Software Interface Standard), and includes programs, data structures and macro definitions. It covers the features of all the integrated peripherals, contains all the related drivers and sample programs.

to support other GD32F4xx parts

You need change:

  • Makefile, modify from '-DGD32F470' to your part model
  • Firmware/Ld/Link.ld, define flash and ram size to match your MCU
  • Choose the startup asm file in 'Firmware/CMSIS/GD/GD32F4xx/Source/GCC' dir and change the Makefile.

to build

The default 'User' codes is to blink four LEDs on JLC LiangShanPi board.

to build it, type:

make

The gd32f470zgt6.elf/bin/hex will be generated in 'build' dir.

LiangShanPi provide both MCU and RGB LCD interface.

'LCD_MCU_LiangShanPi' is the demo code for LiangShanPi LCD module connect to MCU interface, to build it:

cd LCD_MCU_LiangShanPi
make

'LCD_TOUCH_MCU_LiangShanPi' is the demo code for LiangShanPi LCD module connect to MCU interface with touch screen support, to build it:

cd LCD_TOUCH_MCU_LiangShanPi
make

to program

openocd -f /usr/share/openocd/scripts/interface/cmsis-dap.cfg -f /usr/share/openocd/scripts/target/stm32f4x.cfg -c "program build/gd32f470zgt6.elf verify reset exit"

or simple way:

make program

About

GD32F4xx firmware library v3.0.3 with gcc and makefile support. It can be used with JLC LiangShang Pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.0%
  • Assembly 1.7%
  • Other 0.3%