README.rst
1.. zephyr:code-sample:: uart-stm32-single-wire
2 :name: STM32 single-wire UART
3 :relevant-api: uart_interface
4
5 Use single-wire/half-duplex UART functionality of STM32 devices.
6
7Overview
8********
9
10A simple application demonstrating how to use the single wire / half-duplex UART
11functionality of STM32. Without adaptions this example runs on STM32F3 discovery
12board. You need to establish a physical connection between pins PA2 (USART2_TX) and
13PC10 (UART4_TX).
14
15Add a `single_wire_uart_loopback` fixture to your board in the hardware map to allow
16twister to verify this sample's output automatically.
17
18Building and Running
19********************
20
21Build and flash as follows, replacing ``stm32f3_disco`` with your board:
22
23 .. zephyr-app-commands::
24 :zephyr-app: samples/boards/stm32/uart/single_wire
25 :board: stm32f3_disco
26 :goals: build flash
27 :compact:
28
29After flashing the console output should not show any failure reports,
30but the following message repeated every 2s:
31
32.. code-block:: none
33
34 Received c
35