MCUXpresso SDK Documentation

lpuart_polling_seven_bits

lpuart_polling_seven_bits#

Overview#

The lpuart_polling_seven_bits Example project is to demonstrate usage of the KSDK lpuart driver with seven data bits feature enabled. In the example, you can send characters to the console back and they will be printed out onto console instantly. NOTE: Please set com port format to “7 data bits without parity bit” in PC’s com port tool

Supported Boards#

EVKB-IMXRT1050
Hardware requirements
  • Mini/micro USB cable

  • EVKB-IMXRT1050 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J22-2

  • TX of USB2COM to J22-1

  • GND of USB2COM to J24-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
MIMXRT1060-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKB board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J16-2

  • TX of USB2COM to J16-1

  • GND of USB2COM to J17-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
MIMXRT1170-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J25-15

  • TX of USB2COM to J25-13

  • GND of USB2COM to J25-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
MIMXRT1060-EVKC
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKC board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J16-2

  • TX of USB2COM to J16-1

  • GND of USB2COM to J17-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-IMXRT1152
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1152 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J11-8

  • TX of USB2COM to J11-10

  • GND of USB2COM to J11-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
EVK-MIMXRT1010
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1010 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J26-12

  • TX of USB2COM to J26-10

  • GND of USB2COM to J60-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart interrupt example with seven data bits
Board receives 8 characters then sends them out
Now please input:

Note: To debug in qspiflash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J41.

  3. Start debugging in IDE.

    • Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.

EVK-MIMXRT1015
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1015 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J17-2

  • TX of USB2COM to J17-1

  • GND of USB2COM to J19-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters

Note: To debug in qspiflash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J41.

  3. Start debugging in IDE.

    • Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.

EVK-MIMXRT1020
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1020 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J17-2

  • TX of USB2COM to J17-1

  • GND of USB2COM to J19-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters

Note: To debug in qspiflash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.

  3. Start debugging in IDE.

    • Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.

MIMXRT1024-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1024-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J17-4

  • TX of USB2COM to J17-2

  • GND of USB2COM to J19-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters

Note: To debug in qspiflash, following steps are needed:

  1. Select the flash target and compile.

  2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.

  3. Start debugging in IDE.

    • Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.

MIMXRT1040-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1040-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J16-2

  • TX of USB2COM to J16-1

  • GND of USB2COM to J17-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
EVK-MIMXRT1064
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1064 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J22-2

  • TX of USB2COM to J22-1

  • GND of USB2COM to J24-7

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
MIMXRT1160-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1160-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J25-15

  • TX of USB2COM to J25-13

  • GND of USB2COM to J25-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
MIMXRT1180-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1180-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • TX of USB2COM to J44-20

  • RX of USB2COM to J44-18

  • GND of USB2COM to J44-14

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-K32L3A6
Hardware requirements
  • Micro USB cable

  • FRDM-K32L3A6 board

  • Personal Computer

  • USB to Com converter

Board settings

PTA25(J1-2) connect to TxD of the USB to Com converter . PTA26(J1-4) connect to RxD of the USB to Com converter. GND(J2-14) connect to GND of the USB to Com converter.

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

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

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

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-KE15Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE15Z board

  • Personal Computer

  • USB to Com converter

Board settings

PTA2(J4-10) connect to TxD of the USB to Com converter. PTA3(J4-12) connect to RxD of the USB to Com converter. GND(J3-14) connect to GND of the USB to Com converter.

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

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-KE16Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE16Z board

  • Personal Computer

  • USB to Com converter

Board settings

PTD6(J2-11) connect to TxD of the USB to Com converter . PTD7(J4-9) connect to RxD of the USB to Com converter. GND(J2-14) connect to GND of the USB to Com converter.

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

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-KE17Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE17Z board

  • Personal Computer

  • USB to Com converter

Board settings

PTA2(J1-2) connect to TxD of the USB to Com converter. PTA3(J1-4) connect to RxD of the USB to Com converter. GND(J3-14) connect to GND of the USB to Com converter.

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

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-KE17Z512
Hardware requirements
  • Micro USB cable

  • FRDM-KE17Z512 board

  • Personal Computer

  • USB to Com converter

Board settings

PTA2(J1-2) connect to TxD of the USB to Com converter. PTA3(J1-4) connect to RxD of the USB to Com converter. GND(J3-14) connect to GND of the USB to Com converter.

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

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA153
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA153 board

  • Personal Computer

Board settings

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

  • TX of USB2COM to J2-4(P3_14)

  • RX of USB2COM to J2-2(P3_15)

Prepare the Demo
  1. Connect a Type-C USB cable between the host PC and the MCU-Link port(J15) on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA156
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA156 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA156 board.

  • TX of USB2COM to J5-3(P3_20)

  • RX of USB2COM to J5-4(P3_21)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA346
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA346 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA346 board.

  • TX of USB2COM to J5-3(P4_2)

  • RX of USB2COM to J5-4(P4_5)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXE247
Hardware requirements
  • USB-C cable

  • FRDM-MCXE247 board

  • Personal Computer

  • USB to COM converter

Board settings

PTC9(J5-4) connect to RxD of the USB to COM converter. PTC8(J5-3) connect to TxD of the USB to COM converter. GND(J5-8) connect to GND of the USB to COM converter.

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

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 7 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXL255
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXL255 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXL255 board.

  • CM33:

    • TX of USB2COM to SJ1-1(P2_10)

    • RX of USB2COM to SJ2-1(P2_11)

  • AON (CM0+):

    • TX of USB2COM to SJ1-3(P0_7)

    • RX of USB2COM to SJ2-3(P0_6)

Make sure you have solder bridges SJ1 and SJ2 set to

  • 2-1 for the main core (cm33)

  • 2-3 for AON core (cm0+)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port (J16) 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

The following lines are printed to the serial terminal when the demo program is executed.

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXN236
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN236 board

  • Personal Computer

  • USB to TTL converter

Board settings

Connect the USB to TTL converter to FRDM-MCXN236 board. MCX-N9XX-EVK UART pins:

  • TX of USB2COM to J8-4(P4_0)

  • RX of USB2COM to J8-3(P4_1)

Prepare the Demo
  1. Connect a type-c USB cable between the PC host and the MCU-Link USB port (J10) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXN947
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947 board

  • Personal Computer

  • USB to TTL converter

Board settings

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

  • TX of USB2COM to J8-9(P0_12)

  • RX of USB2COM to J8-12(P0_13)

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a type-c USB cable between the PC host and the MCU-Link USB port (J17) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXN947T
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947T board

  • Personal Computer

  • USB to TTL converter

Board settings

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

  • TX of USB2COM to J8-9(P0_12)

  • RX of USB2COM to J8-12(P0_13)

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a type-c USB cable between the PC host and the MCU-Link USB port (J17) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXW71
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW71 Board

  • USB to Serial Converter

  • Personal Computer

Board settings

The connection should be set as following:

  • J1-1(PTA16), TX of USB2COM connected

  • J1-2(PTA17), RX of USB2COM connected

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

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

    • 115200 baud rate

    • 7 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 USB2COM terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
MCX-W71-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W71-EVK Board

  • USB to Serial Converter

  • Personal Computer

Board settings

The connection should be set as following:

  • J1-1(PTA16), TX of USB2COM connected

  • J1-3(PTA17), RX of USB2COM connected

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

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

    • 115200 baud rate

    • 7 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 USB2COM terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
KW45B41Z-EVK
Hardware requirements
  • Mini/micro USB cable

  • KW45B41Z-EVK Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters
KW47-EVK
Hardware requirements
  • Type-C USB cable

  • KW47-EVK Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters

Note: Only the MCU-Link with CMSIS-DAP debugger protocol firmware supports the seven bits transfer. Please check the getting started guide on how to update the MCU-Link debugger firmware.

MCX-N5XX-EVK
Hardware requirements
  • Mini/micro USB cable

  • MCX-N5XX-EVK board

  • Personal Computer

  • USB to TTL converter

Board settings

Connect the USB to TTL converter to MCX-N5XX-EVK board. MCX-N5XX-EVK UART pins:

  • TX of USB2COM to J20-9(P0_12)

  • RX of USB2COM to J20-12(P0_13)

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J5) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
MCX-N9XX-EVK
Hardware requirements
  • Mini/micro USB cable

  • MCX-N9XX-EVK board

  • Personal Computer

  • USB to TTL converter

Board settings

Connect the USB to TTL converter to MCX-N9XX-EVK board. MCX-N9XX-EVK UART pins:

  • TX of USB2COM to J20-9(P0_12)

  • RX of USB2COM to J20-12(P0_13)

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J5) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
MCX-W72-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W72-EVK Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters

Note: Only the MCU-Link with CMSIS-DAP debugger protocol firmware supports the seven bits transfer. Please check the getting started guide on how to update the MCU-Link debugger firmware.

MIMXRT700-EVK
Hardware requirements
  • Micro USB cable

  • MIMXRT700-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings
  1. Remove Jumper JP22.

  2. Connect pin:

  • RX of USB2COM to JP13-4

  • TX of USB2COM to JP13-5

  • GND of USB2COM to JP13-1

Prepare the Demo

Note: MCUXpresso IDE project default debug console is semihost

  1. Connect a micro USB cable between the PC host and the DEBUG PORT on the board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-LINK terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXE31B
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXE31B board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • TX of USB2COM to J1-2

  • RX of USB2COM to J1-4

  • GND of USB2COM to J2-14

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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXE32B
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXE32B board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • TX of USB2COM to J1-2

  • RX of USB2COM to J1-4

  • GND of USB2COM to J2-14

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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA174
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA174 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA174 board.

  • TX of USB2COM to J5-3(P4_2)

  • RX of USB2COM to J5-4(P4_5)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA344
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA344 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA344 board.

  • TX of USB2COM to J5-3(P4_2)

  • RX of USB2COM to J5-4(P4_5)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
KW47-LOC
Hardware requirements
  • Type-C USB cable

  • KW47-LOC Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters

Note: Only the MCU-Link with CMSIS-DAP debugger protocol firmware supports the seven bits transfer. Please check the getting started guide on how to update the MCU-Link debugger firmware.

MCXW72-LOC
Hardware requirements
  • Type-C USB cable

  • MCXW72-LOC Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters

Note: Only the MCU-Link with CMSIS-DAP debugger protocol firmware supports the seven bits transfer. Please check the getting started guide on how to update the MCU-Link debugger firmware.

FRDM-IMXRT1186
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1186 board

  • Personal Computer

  • USB to Com Converter

Board settings

Change Jumper J41 from 1-2 to 2-3, Jumper J43 from 1-2 to 2-3. Connect pin:

  • TX of USB2COM to J1-2

  • RX of USB2COM to J1-4

  • GND of USB2COM to J1-15

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

    • 7 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 example runs successfully, the following message is displayed in the terminal(from USB To Serial Adapter):

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA266
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA266 board.

  • TX of USB2COM to J5-3(P4_2)

  • RX of USB2COM to J5-4(P4_5)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA366
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA366 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA366 board.

  • TX of USB2COM to J5-3(P4_2)

  • RX of USB2COM to J5-4(P4_5)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXW72
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW72 Board

  • Personal Computer

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

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

    • 115200 baud rate

    • 7 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 polling example with seven data bits
Board will send back received characters

Note: Only the MCU-Link with CMSIS-DAP debugger protocol firmware supports the seven bits transfer. Please check the getting started guide on how to update the MCU-Link debugger firmware.

FRDM-MCXA577
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA577 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA577 board.

  • TX of USB2COM to J5-3(P0_24)

  • RX of USB2COM to J5-4(P0_25)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXC162
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXC162 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXC162 board.

  • TX of USB2COM to J5-3(P3_13)

  • RX of USB2COM to J5-4(P3_12)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-KW43
Hardware requirements
  • Type-C USB cable

  • FRDM-KW43 Board

  • Personal Computer

  • USB to serial (UART) converter

Board settings

Using instance 0 of LPUART interface to transfer data to USB to serial (UART) converter.

LPUART0 CONNECTS TO USB to serial (UART) converter Pin Name Board Location Pin Name TXD JP19-1 RXD RXD J19-1 TXD

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. Open a serial terminal on PC for USB to serial (UART) converter serial device with these settings:

    • 115200 baud rate

    • 7 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 USB to serial (UART) converter terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXW70
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW70 Board

  • Personal Computer

  • USB to serial (UART) converter

Board settings

Using instance 0 of LPUART interface to transfer data to USB to serial (UART) converter.

LPUART0 CONNECTS TO USB to serial (UART) converter Pin Name Board Location Pin Name TXD JP19-1 RXD RXD J19-1 TXD

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. Open a serial terminal on PC for USB to serial (UART) converter serial device with these settings:

    • 115200 baud rate

    • 7 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 USB to serial (UART) converter terminal like:

Lpuart polling example with seven data bits
Board will send back received characters
FRDM-MCXA287
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA287 board

  • Personal Computer

Board settings

Connect the USB to TTL converter to FRDM-MCXA287 board.

  • TX of USB2COM to J5-3(P0_24)

  • RX of USB2COM to J5-4(P0_25)

  • GND of the USB2COM to J5-8(GND)

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 7 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 MCU-Link terminal like:

Lpuart polling example with seven data bits
Board will send back received characters