snippets/cdc-acm-console/README.html · snippets/cdc-acm-console/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Snippets · Console

CDC-ACM Console Snippet

Console을 USB virtual serial port로 전환합니다.

Official pathsnippets/cdc-acm-console/README.html
Source filesnippets/cdc-acm-console/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

CDC-ACM Console Snippet의 공식 원문 구조, 설정 조건과 실행 흐름을 생략 없이 설명합니다.

Path

snippets/cdc-acm-console/README.html

Version

Zephyr 3.7.0

Status

Full translation

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 891BD7AC0720129EB84EEE567E83F874DA48E66E8AF3908FCD82AB02832720C6
.. _snippet-cdc-acm-console:

CDC-ACM Console Snippet (cdc-acm-console)
#########################################

.. code-block:: console

   west build -S cdc-acm-console [...]

Overview
********

This snippet redirects serial console output to a CDC ACM UART. The USB device
which should be used is configured using :ref:`devicetree`.

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

Hardware support for:

- :kconfig:option:`CONFIG_USB_DEVICE_STACK`
- :kconfig:option:`CONFIG_SERIAL`
- :kconfig:option:`CONFIG_CONSOLE`
- :kconfig:option:`CONFIG_UART_CONSOLE`
- :kconfig:option:`CONFIG_UART_LINE_CTRL`

A devicetree node with node label ``zephyr_udc0`` that points to an enabled USB
device node with driver support. This should look roughly like this in
:ref:`your devicetree <get-devicetree-outputs>`:

.. code-block:: DTS

   zephyr_udc0: usbd@deadbeef {
   	compatible = "vnd,usb-device";
        /* ... */
   };

Part 3

한국어 전문 번역

west build -S cdc-acm-console [...]

Overview

이 snippet은 serial console output을 USB CDC ACM UART로 redirect합니다. 사용할 USB device는 Devicetree에서 지정합니다.

Requirements

Hardware와 board configuration은 CONFIG_USB_DEVICE_STACK, CONFIG_SERIAL, CONFIG_CONSOLE, CONFIG_UART_CONSOLE, CONFIG_UART_LINE_CTRL을 지원해야 합니다.

Devicetree에는 driver가 지원하고 enabled된 USB device를 가리키는 zephyr_udc0 node label이 있어야 합니다. 대략 다음 구조입니다.

zephyr_udc0: usbd@deadbeef {
     compatible = "vnd,usb-device";
     /* ... */
};

Source

출처

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