MCUXpresso SDK Documentation

flexio_uart_dma_transfer

flexio_uart_dma_transfer#

Overview#

The flexio_uart_dma example shows how to use flexio uart driver in dma way:

In this example, a flexio simulated uart connect to PC through USB-Serial, the board will send back all characters that PC send to the board. Note: two queued transfer in this example, so please input even number characters.

Supported Boards#

FRDM-K32L2B
Hardware requirements
  • Mini/micro USB cable

  • FRDM-K32L2B board

  • USB-to-COM external

  • Personal Computer

Board settings

The flexio_uart_dma example is requires connecting the FLEXIO pins with the USB2COM pins The connection should be set as following:

  • J2-6, TX of USB2COM connected

  • J2-12, RX of USB2COM connected

  • J2-14, Ground of USB2COM connected

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

  2. Open a serial terminal on PC for OpenSDA 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. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

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

Flexio uart dma example
Board receives 8 characters then sends them out
Now please input:
FRDM-MCXC242
Hardware requirements
  • USB-C cable

  • FRDM-MCXC242 board

  • USB-to-COM external

  • Personal Computer

Board settings

The flexio_uart_dma example is requires connecting the FLEXIO pins with the USB2COM pins The connection should be set as following:

  • J1-9, TX of USB2COM connected

  • J1-11, RX of USB2COM connected

  • J2-14, Ground of USB2COM connected

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

  2. Open a serial terminal on PC for OpenSDA 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. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

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

Flexio uart dma example
Board receives 8 characters then sends them out
Now please input:
FRDM-MCXC444
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXC444 board

  • USB-to-COM external

  • Personal Computer

Board settings

The flexio_uart_dma example is requires connecting the FLEXIO pins with the USB2COM pins The connection should be set as following:

  • J2-6, TX of USB2COM connected

  • J2-12, RX of USB2COM connected

  • J2-14, Ground of USB2COM connected

Prepare the Demo
  1. Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) 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. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

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

Flexio uart dma example
Board receives 8 characters then sends them out
Now please input: