Skip to content

liuyu80/gd32f407vet6_gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

gd32f407vet6芯片GCC编译,freeRTOS版本

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages