|
关键词:
imx6 , 明远智睿 , 核心板 , 开发板 , 嵌入式
【接上一章节MY-IMX6-EK200 Linux-4.1.15 测试手册(1)】
8 串口测试
8.1 UART2
位置:J1:7,9
设备:/dev/ttymxc1
测试指令
# /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc1 "www.myzr.com.cn"
Welcome to TTYtest
Send test data------www.myzr.com.cn[/url]
read char is w
read char is w
read char is w
read char is .
read char is m
read char is y
read char is z
read char is r
read char is .
read char is c
read char is o
read char is m
read char is .
read char is c
read char is n
Read Test Data finished,Read Test Data is-------www.myzr.com.cn
8.2 UART3
位置:J1:11,13
设备:/dev/ttymxc2
测试指令
# /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc2"www.myzr.com.cn"
Welcome to TTYtest
Send test data------www.myzr.com.cn
read char is w
read char is w
read char is w
read char is .
read char is m
read char is y
read char is z
read char is r
read char is .
read char is c
read char is o
read char is m
read char is .
read char is c
read char is n
Read Test Data finished,Read Test Data is-------www.myzr.com.cn
8.3 UART4
位置:J1:15,17
设备:/dev/ttymxc3
测试指令
# /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc3 "www.myzr.com.cn"
Welcome to TTYtest
Send test data------www.myzr.com.cn
read char is w
read char is w
read char is w
read char is .
read char is m
read char is y
read char is z
read char is r
read char is .
read char is c
read char is o
read char is m
read char is .
read char is c
read char is n
Read Test Data finished,Read Test Data is-------www.myzr.com.cn
8.4 UART5
位置:J1:16,18
设备:/dev/ttymxc4
测试指令
# /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc4 "www.myzr.com.cn"
Welcome to TTYtest
Send test data------[url]www.myzr.com.cn
read char is w
read char is w
read char is w
read char is .
read char is m
read char is y
read char is z
read char is r
read char is .
read char is c
read char is o
read char is m
read char is .
read char is c
read char is n
Read Test Data finished,Read Test Data is-------www.myzr.com.cn
9 CAN 测试
测试准备
将CAN1的CAN_L与CAN2的CAN_L连接;将CAN1的CAN_H与CAN2的CAN_H连接。
配置 CAN1 (can0)
# ip link set can0 up type can bitrate 125000
配置 CAN2 (can1)
# ip link set can1 up type can bitrate 125000
CAN1 (can0) 后台接收
# candump can0 &
CAN2 (can1) 发送数据
# cansend can1 1F334455#1122334455667788
10 SPI测试
10.1 ECSPI1 测试
位置:J7:7,9
测试设备:/dev/spidev0.1
测试指令
# /my-demo/linux-4.1.15/MY_SPIDEV_TEST_L4115_MYIMX6A9.out -D /dev/spidev0.0
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D
【下章节为MY-IMX6-EK200 Linux-4.1.15 测试手册(3)】
|
|