Skip to main content

SeeedStudio GD32 RISC-V Dev Board

enter image description here

SeeedStudio GD32 RISC-V Dev Board is based on GD32VF103VBT6 MCU which can run at up to 108MHz. GD32VF103 device is a 32-bit general-purpose microcontroller based on the RISC-V core, it provides128 KB on-chip Flash memory and 32 KB SRAM memory. Meanwhile, it provides a wealth of interface resources: 5x U(S)ART, 2 x I2C, 3 x SPI, 2 x I2S, 2 x CAN2.0, 1 x USBFS.

We break out all the I/O Pins(80 GPIOs in total) of GD32VF103, which will meet your diverse development needs. With the onboard 8MB flash and 256Byte EEPROM, you can implement more complex applications. Moreover, we provide a wealth of peripheral resources on the development board, including an LCD, a type c USB port, a TF card slot, two user buttons, and three user LEDs.

Features

  • GD32VF103VBT6 RISC-V MCU @108MHz
  • 128KB on-chip Flash + 8MB on-board Flash
  • LCD Interface: 16-bit 8080 interface and SPI touch screen control interface
  • USB Type C
  • GUI support
  • LCD Display

Hardware Overview

enter image description here

Pinout

enter image description here

Platforms Supported

PlatformIO IDE
enter image description here

Getting Started

Use platformIO IDE for a Test Demo

Hardware

Materials required

SeeedStudio GD32 RISC-V Dev Board, 2.8 inch 240x320 pixel resistive LCD screen, and an FPC cable you can purchase them together with the product SeeedStudio GD32 RISC-V kit with LCD.

enter image description here

USB 3.1 Type C to A Cable

  • Step1 Connect the FPC cable with the LCD display and SeeedStudio GD32 RISC-V Dev Board. When you connect the FPC cable, please let the "blue" side stay on the top like the picture showed above.

  • Step2 Plug the USB Type C cable in the PC and your GD32 board.

Now you finish the hardware config.

Software

note

According to that GD32 board can support the Arduino framework, but not be perfectly compatible with the Arduino IDE, here we use platformIO IDE to create a easy demo. The Arduino IDE version will be updated soon after.

  • Step1 Set up the platformIO IDE, platformIO IDE is based on Visual Studio Code. Download the Visual Studio Code. Click the "Extensions" icon, you can find it on the left side of the Visual Studio Code.

enter image description here

Type "platformIO" in the search engine to install it.

enter image description here

  • Step2 Click the "Open Project" and find your project file. Here use "TFT_GD32" as an example.

enter image description here

Choose the Arduino frame work and GD32 board.

  • Step3 Add the "LCD" library in the platformIO IDE. Usually the library file is at /C:/user/admin/.platformio/lib/, compress the "LCD" library and add it to the target path. Git clone Arduino framework, and add it to /.platformio/packages/... .

  • Step4 You can see that the working column is placed on the left side.

enter image description here

Click the "main.cpp" and compile the code. The compile button is at the bottom of the Visual Studio Code.

enter image description here

  • Step5 The code is compiled to a binary file. You can use DFU tool to download the binary file to the board. Besides you need to install the DFU firmware to let the board download the code in the way of DFU. The DFU firmware is in the same document of the DFU tool.
  • Step6 Check your board and connect it to the PC through USB type-C interface. Make sure the board boot method is correct which is boot0 connect to the high level and boot1 connect to the ground. Both of them are on the left side of the GD32 board, you can adjust them by a couple of wires.
  • Step7 Open the DFU tool, after you set up the board by the steps above, the DFU tool will recognise your board automatically as showed in the picture.

enter image description here

Then you should add your binary file to the colum of APP program file. The binary file is at the path \TFT_GD32.pio\build\gd32vf103v-eval. Choose the Index 4 and click "ok" to download the code to the board, after downloading, click "Leave DFU" to let the board disconnect the DFU tool. Then you will see a demo of counting the time of graphic processing on your LCD. It almost contain all the API in the "TFT_eSPI" library.

enter image description here

note

If you want to download another code, just press the reset button on the board, open the DFU tool, and the DFU tool will recognise the board again. You can also connect the boot0 to the ground in case you press the reset button and delete the code in your board.

Resources

Tech Support & Product Discussion


Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.
Loading Comments...