lpuart_hardware_flow_control#
Overview#
The lpuart_hardware_flow_control Example project is to demonstrate usage of the hardware flow control function. This example will send data to itself(loopback), and hardware flow control will be enabled in the example. The CTS(clear-to-send) pin is for transmiter to check if receiver is ready, if the CTS pin is assert, transmiter start to send data. The RTS(request-to-send) is a pin for receiver to inform the transmiter if receiver is ready to receive data. So, please connect RTS to CTS pin directly.
Supported Boards#
EVKB-IMXRT1050
Hardware requirements
Mini/micro USB cable
EVKB-MIMXRT1050 board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J22 Pin 2 ---------- LPUART_RX J22 pin 1
LPUART_CTS J23 Pin 3 ---------- LPUART_RTS J23 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MIMXRT1060-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKB board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J16 Pin 2 ---------- LPUART_RX J16 pin 1
LPUART_CTS J33 Pin 3 ---------- LPUART_RTS J33 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MIMXRT1060-EVKC
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKC board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J16 Pin 2 ---------- LPUART_RX J16 pin 1
LPUART_CTS J33 Pin 3 ---------- LPUART_RTS J33 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
EVK-MIMXRT1015
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1015 board
Personal Computer
Board settings
This example will send data to itself(loopback), and hardware flow control will be enabled in the example.
To make the example work, connections needed to be as follows:
Pin Name Board Location connect to Pin Name Board Location
RX J17-8 TX J18-2
RTS_B J19-5 CTS_B j19-4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
Note: To debug in qspiflash, following steps are needed:
Select the flash target and compile.
Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
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
Board settings
This example will send data to itself(loopback), and hardware flow control will be enabled in the example.
To make the example work, connections needed to be as follows:
Pin Name Board Location connect to Pin Name Board Location
RX J17-1 TX J17-2
RTS_B J19-1 CTS_B j17-8
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
Note: To debug in qspiflash, following steps are needed:
Select the flash target and compile.
Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
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
Board settings
This example will send data to itself(loopback), and hardware flow control will be enabled in the example.
To make the example work, connections needed to be as follows:
Pin Name Board Location connect to Pin Name Board Location
RX J17-2 TX J17-4
RTS_B J19-2 CTS_B J17-16
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
Note: To debug in qspiflash, following steps are needed:
Select the flash target and compile.
Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
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
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J33 Pin 5 ---------- LPUART_RX J33 pin 6
LPUART_CTS J33 Pin 3 ---------- LPUART_RTS J33 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
EVK-MIMXRT1064
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1064 board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J22 Pin 2 ---------- LPUART_RX J22 pin 1
LPUART_CTS J23 Pin 3 ---------- LPUART_RTS J23 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 OpenSDA terminal like:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J1 Pin 2 ---------- LPUART_RX J1 pin 1
LPUART_CTS J2 Pin 9 ---------- LPUART_RTS J1 Pin 5
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J13 Pin 3 ---------- LPUART_RX J13 pin 4
LPUART_CTS J2 Pin 17 ---------- LPUART_RTS J1 Pin 9
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J13 Pin 3 ---------- LPUART_RX J13 pin 4
LPUART_CTS J2 Pin 2 ---------- LPUART_RTS J1 Pin 5
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J13 Pin 3 ---------- LPUART_RX J13 pin 4
LPUART_CTS J2 Pin 17 ---------- LPUART_RTS J1 Pin 9
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J13 Pin 3 ---------- LPUART_RX J13 pin 4
LPUART_CTS J2 Pin 17 ---------- LPUART_RTS J1 Pin 9
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MIMXRT700-EVK
Hardware requirements
Micro USB cable
MIMXRT700-EVK board
Personal Computer
Board settings
For EVK, make the following connection for UART loopback. Open JP47, Open JP49. Connect JP47-1(RXD) to JP49-1(TXD). Connect J6-9(RTS) to J6-10(CTS).
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the DEBUG PORT(J54) on the board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
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 functional interrupt example
Board receives characters then sends them out
Now please input:
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J2 Pin 4 ---------- LPUART_RX J2 pin 3
LPUART_CTS J1 Pin 1 ---------- LPUART_RTS J2 Pin 1
Short the JP23-2 and JP23-3 with the jumper, other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J2 Pin 4 ---------- LPUART_RX J2 pin 3
LPUART_CTS J1 Pin 1 ---------- LPUART_RTS J2 Pin 1
Short the JP23-2 and JP23-3 with the jumper, other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX J5 Pin 4 ---------- LPUART_RX J5 pin 3
LPUART_CTS J1 Pin 8 ---------- LPUART_RTS J1 Pin 7
Other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port on the board.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
FRDM-KW43
Hardware requirements
Type-C USB cable
FRDM-KW43 Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX JP19 Pin 1 ---------- LPUART_RX JP18 pin 1
LPUART_CTS J19 Pin 2 ---------- LPUART_RTS J23 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.
FRDM-MCXW70
Hardware requirements
Type-C USB cable
FRDM-MCXW70 Board
Personal Computer
Board settings
UART hardware flow control on one board. The UART will send data to itself(loopback), and hardware flow control function will be enabled on this example. So, please make sure the correct connection for example.
Pin Name Board Location connect to Pin Name Board Location
LPUART_TX JP19 Pin 1 ---------- LPUART_RX JP18 pin 1
LPUART_CTS J19 Pin 2 ---------- LPUART_RTS J23 Pin 4
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
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
Download the program to the target board.
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:
This is LPUART hardware flow control example on one board.
This example will send data to itself and will use hardware flow control to avoid the overflow.
Please make sure you make the correct line connection. Basically, the connection is:
LPUART_TX -- LPUART_RX
LPUART_RTS -- LPUART_CTS
Data matched! Transfer successfully.