Part 1
요약·해설
지원 peripheral 9개, microSD SPI1 연결, USART0 pin과 두 flashing runner를 설명합니다.
GD32VF103
Nuclei N200
PA9 / PA10
dfu-util
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
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
한국어 전문 번역

개요
Sipeed Longan Nano와 Longan Nano Lite는 Nuclei System Technology의 N200 RISC-V IP core 기반 GigaDevice GD32VF103 SoC를 사용하는 작고 단순한 development board입니다.
상세 자료:
- Sipeed Longan 웹사이트
- GD32VF103 datasheet
- GD32VF103 user manual
- Nuclei 웹사이트
- Nuclei Bumblebee core 문서
- Nuclei ISA Spec
하드웨어
- 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 기능을 지원합니다.
| Peripheral | Kconfig option | Devicetree compatible |
|---|---|---|
| GPIO | CONFIG_GPIO | gd,gd32-gpio |
| Machine timer | CONFIG_RISCV_MACHINE_TIMER | riscv,machine-timer |
| Nuclei ECLIC Interrupt Controller | CONFIG_NUCLEI_ECLIC | nuclei,eclic |
| PWM | CONFIG_PWM | gd,gd32-pwm |
| USART | CONFIG_SERIAL | gd,gd32-usart |
| I2C | CONFIG_I2C | gd,gd32-i2c |
| DAC | CONFIG_DAC | gd,gd32-dac |
| ADC | CONFIG_ADC | gd,gd32-adc |
| SPI | CONFIG_SPI | gd,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 flashCustom toolchain을 사용할 때는 내려받은 binary가 PATH에 있으면 충분합니다. 기본 runner는 external programmer와 OpenOCD로 board를 flash합니다. USB port로 flash하려면 DFU runner를 선택합니다.
west flash --runner dfu-utilDebugging
일반적인 방식으로 blinky application을 debug할 수 있습니다.
west build -b longan_nano samples/basic/blinky
west debug
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.