SCM188 NXP i.MX 8M Plus ARM-based SMARC Module
Serial Port Test
The below table and figure present that serial port pin define on SCM188 with SCB184 board
SCM188 Set Flow Control
SCM188 No Set Flow Control
⚫
Switch the mode and connect the correct pin with serial port of host PC or loopback by
using cable.
⚫
To set SCM188 with SCB184 serial port baud rate, please execute below command.
sh-5.1#
stty -F /dev/ttymxc<x> <Baud rate>
Example:
sh-5.1#
stty -F /dev/ttymxc0 115200
⚫
Open another UART console in host PC and set the serial port settings as mentioned
below.
Bits per second: 115200 bps
Data bits: 8
Parity: none
Stop bits: 1
Flow control: none
⚫
To transmit data through the serial port, please execute the below command.
echo "uart_test_message" > /dev/ttymxc<x>
sh-5.1#
⚫
To receive the data by serial port, please execute the below command.
sh-5.1#
cat /dev/ ttymxc<x>
⚫
To set the Baud rate to a different value, please execute the below command.
sh-5.1#
stty -F /dev/ttymxc<x><Baud rate>
28
1
Device RTS set off
RTS(Input)/CTS(Output)
HI/LOW
HI/pulse
5
ttymxc0
6
9
1
5
ttymxc2
6
9
Device RTS set on
RTS(Input) CTS(Output)
LOW/pulse
LOW/pulse
SCM188 BSP User Guide
Need help?
Do you have a question about the SCM188 and is the answer not in the manual?
Questions and answers