HAL UART DMA loopback
This example demonstrates DMA-based UART transmit and receive using the HAL APIs.
Two UART instances are used — one for TX and one for RX. The TX output is routed to the RX input through the on-chip SPGSS loopback, so no external jumper wires are required.
The application transmits a 256-byte buffer via DMA on the TX instance, receives it back on the RX instance, and verifies the data matches.
External Connections
No external connections are required. The example uses the on-chip SPGSS loopback to route UC1 TX to UC2 RX via SPG0.