Code Monkey home page Code Monkey logo

gd32f4xx_firmware_library_gcc_makefile's Introduction

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

gd32f4xx_firmware_library_gcc_makefile's People

Contributors

ald2004 avatar cjacker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.