Hardware requirements

  • Mini/Micro USB cable

  • FRDM-K22F board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J1-4

  • TX of USB2COM to J1-2

  • 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. 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:

USART CMSIS interrupt example
Board receives 8 characters then sends them out
Now please input:

When you input 8 characters, system will echo it by LPUART and them would be seen on the OpenSDA terminal.