samples/boards/stm32/uart/single_wire/README.html · samples/boards/stm32/uart/single_wire/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · STM32 UART

STM32 Single-wire UART

두 UART TX pin을 한 wire로 연결하고 2초마다 수신 결과를 검증합니다.

Official pathsamples/boards/stm32/uart/single_wire/README.html
Source filesamples/boards/stm32/uart/single_wire/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Physical loopback, Twister fixture와 failure-free 출력을 설명합니다.

Pins

PA2 · PC10

Mode

Half duplex

Fixture

single_wire_uart_loopback

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 918EC4A86268B1C3D96C22002CD885DCE76630C136F8ACE66FA9DF3D37E036C3
.. zephyr:code-sample:: uart-stm32-single-wire
   :name: STM32 single-wire UART
   :relevant-api: uart_interface

   Use single-wire/half-duplex UART functionality of STM32 devices.

Overview
********

A simple application demonstrating how to use the single wire / half-duplex UART
functionality of STM32. Without adaptions this example runs on STM32F3 discovery
board. You need to establish a physical connection between pins PA2 (USART2_TX) and
PC10 (UART4_TX).

Add a `single_wire_uart_loopback` fixture to your board in the hardware map to allow
twister to verify this sample's output automatically.

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

Build and flash as follows, replacing ``stm32f3_disco`` with your board:

 .. zephyr-app-commands::
    :zephyr-app: samples/boards/stm32/uart/single_wire
    :board: stm32f3_disco
    :goals: build flash
    :compact:

After flashing the console output should not show any failure reports,
but the following message repeated every 2s:

.. code-block:: none

    Received c

Part 3

한국어 전문 번역

STM32 device의 single-wire/half-duplex UART 기능을 사용합니다.

개요

STM32 single-wire/half-duplex UART 기능의 사용법을 보여주는 간단한 application입니다. 수정 없이 실행할 때는 STM32F3 Discovery board를 사용하며, PA2(USART2_TX)와 PC10(UART4_TX) pin 사이를 물리적으로 연결해야 합니다.

Twister가 sample 출력을 자동으로 검증하게 하려면 hardware map의 board에 single_wire_uart_loopback fixture를 추가합니다.

Build와 실행

stm32f3_disco를 사용하는 board로 바꿔 다음과 같이 build하고 flash합니다.

west build -b stm32f3_disco samples/boards/stm32/uart/single_wire
west flash

Flash 뒤 console 출력에는 failure report가 없어야 하며, 다음 message가 2초마다 반복되어야 합니다.

Received c

Source

출처

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