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

Zephyr 3.7.0 · Boards · GigaDevice

GigaDevice GD32F407V-START

168MHz Cortex-M4 starter board를 GD-Link 또는 J-Link로 개발합니다.

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

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

Part 1

요약·해설

GD32F407V-START는 3072KiB Flash, 192KiB SRAM과 onboard GD-Link를 제공합니다.

GD32F407V-START
GD32F407V-START.
CPU

Cortex-M4 · 168MHz

Serial

PB6 · PB7

Debug

GD-Link · J-Link/SWD

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 8B9D2F4216394BB19E38C22D190B5DBBA6E91941FD2113776B0C337E9AF05820
.. _gd32f407v_start:

GigaDevice GD32F407V-START
##########################

Overview
********

The GD32F407V-START board is a hardware platform that enables prototyping
on GD32F407VE Cortex-M4 High Performance MCU.

The GD32F407VE features a single-core ARM Cortex-M4 MCU which can run up
to 168 MHz with flash accesses zero wait states, 3072kiB of Flash, 192kiB of
SRAM and 82 GPIOs.

.. image:: ../../../../../../../boards/gd/gd32f407v_start/doc/img/gd32f407v_start.webp
     :align: center
     :alt: gd32f407v_start

Hardware
********

- GD32F407VET6 MCU
- 1 x User LEDs
- 1 x User Push buttons
- 1 x USART
- GD-Link on board programmer
- J-Link/SWD connector

For more information about the GD32F407 SoC and GD32F407V-START board:

- `GigaDevice Cortex-M4 High Performance SoC Website`_
- `GD32F407X Datasheet`_
- `GD32F40X User Manual`_
- `GD32F407V-START User Manual`_

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

The board configuration supports the following hardware features:

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

   * - Peripheral
     - Kconfig option
     - Devicetree compatible
   * - EXTI
     - :kconfig:option:`CONFIG_GD32_EXTI`
     - :dtcompatible:`gd,gd32-exti`
   * - GPIO
     - :kconfig:option:`CONFIG_GPIO`
     - :dtcompatible:`gd,gd32-gpio`
   * - NVIC
     - N/A
     - :dtcompatible:`arm,v7m-nvic`
   * - PWM
     - :kconfig:option:`CONFIG_PWM`
     - :dtcompatible:`gd,gd32-pwm`
   * - SYSTICK
     - N/A
     - N/A
   * - USART
     - :kconfig:option:`CONFIG_SERIAL`
     - :dtcompatible:`gd,gd32-usart`

Other peripherals may be used if shields are connected to the board.

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

The GD32F407V-START board has one serial communication port. The default port
is USART0 with TX connected at PB6 and RX at PB7.

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

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

- JP3/4: Select 2-3 for both (boot from user memory)

Using GD-Link or J-Link
=======================

The board comes with an embedded GD-Link programmer.
You need to install CMSIS-Pack which is required by pyOCD
when programming or debugging by the GD-Link programmer.
Execute the following command to install CMSIS-Pack for GD32F407VK
if not installed yet.

   .. code-block:: console

      pyocd pack install gd32f407vk

Also, J-Link can be used to program the board via the SWD interface
(PA13/SWDIO and PA14/SWCLK in the JP6 header).

#. Build the Zephyr kernel and the :ref:`hello_world` sample application:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: gd32f407v_start
      :goals: build
      :compact:

#. Connect Serial-USB adapter to PB6, PB7, and GND.

#. 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: gd32f407v_start
      :goals: flash
      :compact:

   When using J-Link, append ``--runner jlink`` option after ``west flash``.

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

#. To debug an image:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: gd32f407v_start
      :goals: debug
      :compact:

   When using J-Link, append ``--runner jlink`` option after ``west debug``.

.. _GigaDevice Cortex-M4 High Performance SoC Website:
   https://www.gigadevice.com/products/microcontrollers/gd32/arm-cortex-m4/high-performance-line/

.. _GD32F407X Datasheet:
   https://gd32mcu.com/data/documents/datasheet/GD32F407xx_Datasheet_Rev2.5.pdf

.. _GD32F40X User Manual:
   https://gd32mcu.com/data/documents/userManual/GD32F4xx_User_Manual_Rev2.7.pdf

.. _GD32F407V-START User Manual:
   https://www.gd32mcu.com/data/documents/evaluationBoard/GD32F4xx_Demo_Suites_V2.6.1.rar

Part 3

한국어 전문 번역

개요

GD32F407V-START board는 GD32F407VE Cortex-M4 high-performance MCU로 prototype을 제작할 수 있는 hardware platform입니다.

GD32F407VE에는 최대 168MHz로 동작하는 single-core ARM Cortex-M4 MCU가 들어 있습니다. Flash 접근은 zero wait state이며 3072KiB Flash, 192KiB SRAM, GPIO 82개를 제공합니다.

GD32F407V-START
GigaDevice GD32F407V-START board.

Hardware

  • GD32F407VET6 MCU
  • User LED 1개
  • User push button 1개
  • USART 1개
  • Onboard GD-Link programmer
  • J-Link/SWD connector

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

지원 기능

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

주변장치Kconfig optionDevicetree compatible
EXTICONFIG_GD32_EXTIgd,gd32-exti
GPIOCONFIG_GPIOgd,gd32-gpio
NVICN/Aarm,v7m-nvic
PWMCONFIG_PWMgd,gd32-pwm
SYSTICKN/AN/A
USARTCONFIG_SERIALgd,gd32-usart

Shield를 board에 연결하면 다른 peripheral도 사용할 수 있습니다.

Serial port

GD32F407V-START에는 serial communication port가 1개 있습니다. Default port는 TX가 PB6, RX가 PB7에 연결된 USART0입니다.

Programming과 Debugging

Programming하기 전에 JP3/4를 모두 2-3으로 선택해 user memory에서 boot하도록 설정합니다.

GD-Link 또는 J-Link 사용

Embedded GD-Link로 programming하거나 debugging할 때 pyOCD에 필요한 CMSIS-Pack을 설치해야 합니다. 아직 설치하지 않았다면 GD32F407VK pack을 설치합니다.

pyocd pack install gd32f407vk

J-Link는 JP6 header의 PA13/SWDIO와 PA14/SWCLK에 노출된 SWD interface로 연결할 수 있습니다.

  1. Zephyr kernel과 hello_world sample을 build합니다.
    west build -b gd32f407v_start samples/hello_world
  2. Serial-USB adapter를 PB6, PB7, GND에 연결합니다.
  3. /dev/ttyUSB0 같은 terminal에서 output을 받습니다.
    minicom -D /dev/ttyUSB0 -o

    -o는 modem initialization string을 보내지 않습니다.

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

    J-Link를 사용할 때는 west flash 뒤에 --runner jlink option을 붙입니다. Hello World! gd32f407v_start가 표시되어야 합니다.

  5. Image를 debug합니다.
    west debug

    J-Link를 사용할 때는 west debug 뒤에 --runner jlink option을 붙입니다.

참고 자료

Source

출처

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