This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

6.36. Use DMA to receive and send UART data

6.36.1. Overview

In this example project, UART receives/sends data via DMA.

6.36.2. Port Settings

  • Serial port baud rate is set to 115200bps, with one stop bit and no parity bit

6.36.3. Note

  • The input string length should not exceed TEST_BUFF_SIZE defined in the program every time

6.36.4. Running the example

When the project runs correctly, the serial port terminal will output the following information:

UART DMA example
UART will send back received characters, echo every 16 bytes

Manually input the char through the serial port, such as ‘1234567887654321’, and the serial port terminal will receive the following information: