boards/sipeed/longan_nano/doc/index.html · boards/sipeed/longan_nano/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Sipeed · RISC-V

Sipeed Longan Nano

Nuclei N200 RISC-V core 기반 GD32VF103 소형 board를 OpenOCD 또는 USB DFU로 개발합니다.

Official pathboards/sipeed/longan_nano/doc/index.html
Source fileboards/sipeed/longan_nano/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

지원 peripheral 9개, microSD SPI1 연결, USART0 pin과 두 flashing runner를 설명합니다.

SoC

GD32VF103

Core

Nuclei N200

Serial

PA9 / PA10

USB flash

dfu-util

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 72C5A01197146765516B3093E8F0A8F6EBADB2791C21CE453481518CB35F3FEC
.. _longan_nano:

Sipeed Longan Nano
##################

.. image:: ../../../../../../../boards/sipeed/longan_nano/doc/img/longan_nano.jpg
     :align: center
     :alt: longan_nano

Overview
********

The Sipeed Longan Nano and Longan Nano Lite is an simple and tiny development board with
an GigaDevice GD32VF103 SoC that based on N200 RISC-V IP core by Nuclei system technology.
More information can be found on:

- `Sipeed Longan website <https://longan.sipeed.com/en/>`_
- `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>`_
- `Nuclei website <https://www.nucleisys.com/download.php>`_
- `Nuclei Bumblebee core documents <https://github.com/nucleisys/Bumblebee_Core_Doc>`_
- `Nuclei ISA Spec <https://doc.nucleisys.com/nuclei_spec/>`_

Hardware
********

- 4 x universal 16-bit timer
- 2 x basic 16-bit timer
- 1 x advanced 16-bit timer
- Watchdog timer
- RTC
- Systick
- 3 x USART
- 2 x I2C
- 3 x SPI
- 2 x I2S
- 2 x CAN
- 1 x USBFS(OTG)
- 2 x ADC(10 channel)
- 2 x DAC

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`
   * - I2C
     - :kconfig:option:`CONFIG_I2C`
     - :dtcompatible:`gd,gd32-i2c`
   * - DAC
     - :kconfig:option:`CONFIG_DAC`
     - :dtcompatible:`gd,gd32-dac`
   * - ADC
     - :kconfig:option:`CONFIG_ADC`
     - :dtcompatible:`gd,gd32-adc`
   * - SPI
     - :kconfig:option:`CONFIG_SPI`
     - :dtcompatible:`gd,gd32-spi`

The microSD card reader in Longan Nano board is connected to SPI1.

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

USART0 is on the opposite end of the USB.
Connect to TX0 (PA9) and RX0 (PA10).

Programming and debugging
*************************

Building & Flashing
===================

Here is an example for building the :zephyr:code-sample:`blinky` application.

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: longan_nano
   :goals: build flash

When using a custom toolchain it should be enough to have the downloaded
version of the binary in your ``PATH``.

The default runner tries to flash the board via an external programmer using openocd.
To flash via the USB port, select the DFU runner when flashing:

.. code-block:: console

   west flash --runner dfu-util

Debugging
=========

You can debug an application in the usual way.  Here is an example for the
:zephyr:code-sample:`blinky` application.

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: longan_nano
   :maybe-skip-config:
   :goals: debug

Part 3

한국어 전문 번역

Longan Nano

개요

Sipeed Longan Nano와 Longan Nano Lite는 Nuclei System Technology의 N200 RISC-V IP core 기반 GigaDevice GD32VF103 SoC를 사용하는 작고 단순한 development board입니다.

상세 자료:

하드웨어

  • Universal 16-bit timer 4개
  • Basic 16-bit timer 2개
  • Advanced 16-bit timer 1개
  • Watchdog timer
  • RTC
  • Systick
  • USART 3개
  • I2C 2개
  • SPI 3개
  • I2S 2개
  • CAN 2개
  • USBFS(OTG) 1개
  • 10-channel ADC 2개
  • DAC 2개

지원 기능

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

PeripheralKconfig 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
I2CCONFIG_I2Cgd,gd32-i2c
DACCONFIG_DACgd,gd32-dac
ADCCONFIG_ADCgd,gd32-adc
SPICONFIG_SPIgd,gd32-spi

Longan Nano의 microSD card reader는 SPI1에 연결됩니다.

Serial port

USART0는 USB 반대편 끝에 있습니다. TX0(PA9)와 RX0(PA10)에 연결합니다.

Programming and debugging

Build와 flash

blinky application을 build하고 flash합니다.

west build -b longan_nano samples/basic/blinky
west flash

Custom toolchain을 사용할 때는 내려받은 binary가 PATH에 있으면 충분합니다. 기본 runner는 external programmer와 OpenOCD로 board를 flash합니다. USB port로 flash하려면 DFU runner를 선택합니다.

west flash --runner dfu-util

Debugging

일반적인 방식으로 blinky application을 debug할 수 있습니다.

west build -b longan_nano samples/basic/blinky
west debug

Source

출처

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