samples/subsys/usb/console/README.html · samples/subsys/usb/console/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · USB Console

USB CDC ACM Console

USB serial device를 console backend로 사용하고 ttyACM0에서 출력을 확인합니다.

Official pathsamples/subsys/usb/console/README.html
Source filesamples/subsys/usb/console/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

USB controller 요구 사항, Reel Board build와 ModemManager 문제 해결을 설명합니다.

Transport

USB CDC ACM

Device

/dev/ttyACM0

Output

Hello World

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C4D587445680BF68F876D9DEFF16CBFCAEDBB1D21E44B286C12CD6336AD5472F
.. zephyr:code-sample:: usb-cdc-acm-console
   :name: Console over USB CDC ACM
   :relevant-api: _usb_device_core_api usbd_api

   Output "Hello World!" to the console over USB CDC ACM.

Overview
********

A simple Hello World sample, with console output coming via CDC ACM UART.
Primarily intended to show the required config options.

Requirements
************

This project requires a USB device controller driver.

Building and Running
********************

This sample can be built for multiple boards, in this example we will build it
for the reel_board board:

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/usb/console
   :board: reel_board
   :goals: flash
   :compact:

Plug the board into a host device, for sample, a PC running Linux OS.
The board will be detected as a CDC_ACM serial device. To see the console output
from the sample, use a command similar to :command:`minicom -D /dev/ttyACM0`.

.. code-block:: console

   Hello World! arm
   Hello World! arm
   Hello World! arm
   Hello World! arm

Troubleshooting
===============

You may need to stop :program:`modemmanager` via :command:`sudo stop modemmanager`, if it is
trying to access the device in the background.

Part 3

한국어 전문 번역

개요

USB CDC ACM UART를 통해 console output을 내보내는 간단한 Hello World sample입니다. USB console을 활성화하는 데 필요한 configuration option을 보여 주는 것이 주목적입니다.

요구 사항

이 project에는 USB device controller driver가 필요합니다.

빌드 및 실행

여러 board용으로 build할 수 있습니다. 다음 example은 reel_board를 대상으로 build하고 flash합니다.

west build -b reel_board samples/subsys/usb/console
west flash

Board를 Linux PC 같은 host device에 연결하면 CDC_ACM serial device로 감지됩니다. Sample의 console output을 보려면 minicom -D /dev/ttyACM0과 비슷한 command로 해당 port를 엽니다.

Hello World! arm
Hello World! arm
Hello World! arm
Hello World! arm

문제 해결

ModemManager가 background에서 device에 접근하려 한다면 sudo stop modemmanager로 서비스를 중지해야 할 수 있습니다.

Source

출처

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