MCUXpresso SDK Documentation

uart_dma_transfer

uart_dma_transfer#

Overview#

The uart_dma example shows how to use uart driver with DMA:

In this example, one uart instance connect to PC through uart, the board will send back all characters that PC send to the board.

Note: The example echo every 8 characters, so input 8 characters every time.

Supported Boards#

FRDM-K32L2B
Hardware requirements
  • Mini USB cable

  • FRDM-K32L2B board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J1_6

  • TX of USB2COM to J2-4

  • GND of USB2COM to J2-14

Prepare the Demo
  1. Connect USB to Com Converter between the PC host and the port on the board.

  2. Open a serial terminal on PC for serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Reset the SoC and run the project.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

UART DMA example
Send back received data
Echo every 8 characters
FRDM-MCXC242
Hardware requirements
  • Mini USB cable

  • USB to TTL converter

  • FRDM-MCXC242 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXC242 board. FRDM-MCXC242 UART pins:

  • TX of USB2COM to J1-5

  • RX of USB2COM to J1-7

  • GND of USB2COM to J2-14

Prepare the Demo
  1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.

  2. Connect the USB to TTL converter to PC host.

  3. Open a serial terminal on PC for the USB to TTL converter with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Reset the SoC and run the project.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

UART DMA example
Send back received data
Echo every 8 characters
FRDM-MCXC444
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXC444 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J1_6

  • TX of USB2COM to J2-4

  • GND of USB2COM to J2-14

Prepare the Demo
  1. Connect USB to Com Converter between the PC host and the port on the board.

  2. Open a serial terminal on PC for serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Reset the SoC and run the project.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

UART DMA example
Send back received data
Echo every 8 characters
TWR-KM34Z50MV3
Hardware requirements
  • Micro/Mini USB cable

  • TWR-KM34Z50MV3 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Reset the SoC and run the project.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

UART DMA example
Send back received data
Echo every 8 characters
TWR-KM34Z75M
Hardware requirements
  • Micro/Mini USB cable

  • TWR-KM34Z75M board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Reset the SoC and run the project.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

UART DMA example
Send back received data
Echo every 8 characters
TWR-KM35Z75M
Hardware requirements
  • Micro/Micro USB cable

  • TWR-KM35Z75M board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Reset the SoC and run the project.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

UART DMA example
Send back received data
Echo every 8 characters