HAL UART Log Example

Demonstrates routing LOG output to UART for serial terminal debugging without a debugger connection.

Overview

This example initializes the UART HAL and registers it as the LOG output backend. All LOG macro calls are transmitted via UART at 115200 baud.

Hardware Setup

Connect your board to your PC using the same USB cable used for JTAG debugging. The XDS110 provides a virtual COM port for UART communication - no additional hardware required.

Expected Output

Open a serial terminal on the virtual COM port to view the LOG messages.

Serial Terminal Configuration

  • Baud Rate: 115200

  • Data Bits: 8

  • Parity: None

  • Stop Bits: 1

  • Flow Control: None