boards/gd/gd32vf103v_eval/doc/index.rst
.. zephyr:board:: gd32vf103v_eval
Overview
The GD32V103V-EVAL board is a hardware platform that enables prototyping on GD32VF103VB RISC-V MCU.
The GD32VF103VB features a single-core RISC-V 32-bit MCU which can run up to 108 MHz with flash accesses zero wait states, 128 KiB of Flash, 32 KiB of SRAM and 80 GPIOs.
Hardware
For more information about the GD32VF103 SoC and GD32VF103V-EVAL board:
GigaDevice RISC-V Mainstream SoC Website_GD32VF103 Datasheet_GD32VF103 User Manual_GD32VF103V-EVAL Documents_.. zephyr:board-supported-hw::
The GD32VF103V-EVAL board has two serial communications port. The default port is USART0 with TX connected at PA9 and RX at PA10.
Programming and Debugging
.. zephyr:board-supported-runners::
Before programming your board make sure to configure boot and serial jumpers as follows:
USART0)The GD32VF103V-EVAL includes an onboard programmer/debugger (GD-Link) which allows flash programming and debugging over USB. There is also a JTAG header (JP1) which can be used with tools like Segger J-Link.
#. Build the Zephyr kernel and the :zephyr:code-sample:hello_world sample application:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: gd32vf103v_eval :goals: build :compact:
#. Run your favorite terminal program to listen for output. On Linux the
terminal should be something like /dev/ttyUSB0. For example:
.. code-block:: console
minicom -D /dev/ttyUSB0 -o
The -o option tells minicom not to send the modem initialization string. Connection should be configured as follows:
- Speed: 115200
- Data: 8 bits
- Parity: None
- Stop bits: 1
#. To flash an image:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: gd32vf103v_eval :goals: flash :compact:
You should see "Hello World! gd32vf103v_eval" in your terminal.
#. To debug an image:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: gd32vf103v_eval :goals: debug :compact:
.. _GigaDevice RISC-V Mainstream SoC Website: https://www.gigadevice.com/products/microcontrollers/gd32/risc-v/mainstream-line/
.. _GD32VF103 Datasheet: https://www.gigadevice.com/datasheet/gd32vf103xxxx-datasheet/
.. _GD32VF103 User Manual: https://www.gd32mcu.com/data/documents/userManual/GD32VF103_User_Manual_Rev1.4.pdf
.. _GD32VF103V-EVAL Documents: https://github.com/riscv-mcu/GD32VF103_Demo_Suites/tree/master/GD32VF103V_EVAL_Demo_Suites/Docs