boards/gd/gd32vf103c_starter/doc/index.html · boards/gd/gd32vf103c_starter/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · GigaDevice RISC-V

GigaDevice GD32VF103C-STARTER

108MHz 32-bit RISC-V MCU와 ECLIC을 사용하는 compact starter board입니다.

Official pathboards/gd/gd32vf103c_starter/doc/index.html
Source fileboards/gd/gd32vf103c_starter/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

GD32VF103C-STARTER는 128KiB Flash, 32KiB SRAM, CH340E serial과 onboard GD-Link를 제공합니다.

GD32VF103C-STARTER
GD32VF103C-STARTER.
CPU

32-bit RISC-V · 108MHz

Interrupt

Nuclei ECLIC

Serial

CH340E USB

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E4F55795BB7B21F954572041D0C6183E43A623E17F7D97FE39DEFF18460289EE
.. _gd32vf103c_starter:

GigaDevice GD32VF103C-STARTER
#############################

Overview
********

The GD32VF103C-STARTER board is a hardware platform that enables prototyping
on GD32VF103CB RISC-V MCU.

The GD32VF103CB 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 37 GPIOs.

.. image:: ../../../../../../../boards/gd/gd32vf103c_starter/doc/img/gd32vf103c_starter.jpg
     :align: center
     :alt: gd32vf103c_starter

Hardware
********

- GD32VF103CBT6 MCU
- 1 x User LEDs
- 1 x USART (USB port with CH340E)
- USB FS connector
- GD-Link on board programmer
- J-Link/JTAG connector

For more information about the GD32VF103 SoC and GD32VF103C-STARTER board:

- `GigaDevice RISC-V Mainstream SoC Website`_
- `GD32VF103 Datasheet`_
- `GD32VF103 User Manual`_
- `GD32VF103C-STARTER Documents`_

Supported Features
==================

The board configuration supports the following hardware features:

.. list-table::
   :header-rows: 1

   * - Peripheral
     - Kconfig option
     - Devicetree compatible
   * - GPIO
     - :kconfig:option:`CONFIG_GPIO`
     - :dtcompatible:`gd,gd32-gpio`
   * - Machine timer
     - :kconfig:option:`CONFIG_RISCV_MACHINE_TIMER`
     - :dtcompatible:`riscv,machine-timer`
   * - Nuclei ECLIC Interrupt Controller
     - :kconfig:option:`CONFIG_NUCLEI_ECLIC`
     - :dtcompatible:`nuclei,eclic`
   * - PWM
     - :kconfig:option:`CONFIG_PWM`
     - :dtcompatible:`gd,gd32-pwm`
   * - USART
     - :kconfig:option:`CONFIG_SERIAL`
     - :dtcompatible:`gd,gd32-usart`

Serial Port
===========

The GD32VF103C-STARTER board has one serial communications port.
TX connected at PA9 and RX at PA10.

Programming and Debugging
*************************

Before programming your board make sure to configure boot and serial jumpers
as follows:

- JP2/3: Select 2-3 for both (boot from user memory)
- JP5/6: Select 1-2 positions (labeled as ``USART0``)

Using GD-Link
=============

The GD32VF103C-STARTER 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 :ref:`hello_world` sample application:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: gd32vf103c_starter
      :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: gd32vf103c_starter
      :goals: flash
      :compact:

   You should see "Hello World! gd32vf103c_starter" in your terminal.

#. To debug an image:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: gd32vf103c_starter
      :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:
   http://www.gd32mcu.com/download/down/document_id/222/path_type/1

.. _GD32VF103C-STARTER Documents:
   https://github.com/riscv-mcu/GD32VF103_Demo_Suites/tree/master/GD32VF103C_START_Demo_Suites/Docs

Part 3

한국어 전문 번역

개요

GD32VF103C-STARTER board는 GD32VF103CB RISC-V MCU로 prototype을 제작할 수 있는 hardware platform입니다.

GD32VF103CB에는 최대 108MHz로 동작하는 single-core 32-bit RISC-V MCU가 들어 있습니다. Flash 접근은 zero wait state이며 128KiB Flash, 32KiB SRAM, GPIO 37개를 제공합니다.

GD32VF103C-STARTER
GigaDevice GD32VF103C-STARTER board.

Hardware

  • GD32VF103CBT6 MCU
  • User LED 1개
  • USART 1개(CH340E를 사용한 USB port)
  • USB FS connector
  • Onboard GD-Link programmer
  • J-Link/JTAG connector

GD32VF103 SoC와 board의 자세한 내용은 product page, datasheet, user manual과 board document에서 확인할 수 있습니다.

지원 기능

Board configuration은 다음 hardware 기능을 지원합니다.

주변장치Kconfig optionDevicetree compatible
GPIOCONFIG_GPIOgd,gd32-gpio
Machine timerCONFIG_RISCV_MACHINE_TIMERriscv,machine-timer
Nuclei ECLIC Interrupt ControllerCONFIG_NUCLEI_ECLICnuclei,eclic
PWMCONFIG_PWMgd,gd32-pwm
USARTCONFIG_SERIALgd,gd32-usart

Serial port

GD32VF103C-STARTER에는 serial communication port가 1개 있으며 TX는 PA9, RX는 PA10에 연결됩니다.

Programming과 Debugging

Programming 전에 JP2/3을 모두 2-3으로 선택해 user memory에서 boot하고, JP5/6을 USART0이라고 표시된 1-2 위치로 설정합니다.

GD-Link 사용

Onboard GD-Link는 USB flash programming과 debugging을 지원합니다. JP1 JTAG header에는 Segger J-Link 같은 tool도 연결할 수 있습니다.

  1. Zephyr kernel과 hello_world sample을 build합니다.
    west build -b gd32vf103c_starter samples/hello_world
  2. Linux의 /dev/ttyUSB0 같은 terminal에서 output을 받습니다.
    minicom -D /dev/ttyUSB0 -o

    -o는 modem initialization string을 보내지 않습니다. Connection 설정은 다음과 같습니다.

    • Speed: 115200
    • Data: 8 bits
    • Parity: None
    • Stop bits: 1
  3. Image를 flash합니다.
    west flash

    Hello World! gd32vf103c_starter가 terminal에 표시되어야 합니다.

  4. Image를 debug합니다.
    west debug

참고 자료

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.