MCUXpresso SDK Documentation

lpuart_dma_transfer

lpuart_dma_transfer#

Overview#

The lpuart_dma Example project is to demonstrate usage of the KSDK lpuart driver. In the example, you can send characters to the console back and they will be printed out onto console in a group of 8 characters.

Supported Boards#

FRDM-K32L2B
Hardware requirements
  • Mini USB cable

  • FRDM-K32L2B board

  • Personal Computer

Board settings

No special is needed.

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. Reset the SoC and run the project.

Running the demo

When the demo runs successfully, the log would be seen on the OpenSDA terminal like:

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

  • FRDM-MCXC242 board

  • Personal Computer

Board settings

No special is needed.

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. Reset the SoC and run the project.

Running the demo

When the demo runs successfully, the log would be seen on the OpenSDA terminal like:

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

  • FRDM-MCXC444 board

  • Personal Computer

Board settings

No special is needed.

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 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 OpenSDA terminal like:

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

  • TWR-KM34Z75M board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J14-1

  • TX of USB2COM to J16-1

  • GND of USB2COM to J25-10

Prepare the Demo
  1. Connect USB to Com Converter between the host PC and the port on the 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 log would be seen on the UART Terminal port which connected to the USB2COM like:

LPUART EDMA example
Send back received data
Echo every 8 characters
TWR-KM35Z75M
Hardware requirements
  • Micro USB cable

  • TWR-KM35Z75M board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J14-1

  • TX of USB2COM to J16-1

  • GND of USB2COM to J25-10

Prepare the Demo
  1. Connect USB to Com Converter between the host PC and the port on the 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 log would be seen on the UART Terminal port which connected to the USB2COM like:

LPUART EDMA example
Send back received data
Echo every 8 characters