打印
[ARM入门]

MY-IMX6-EK200 Linux-4.1.15 测试手册(2)

[复制链接]
452|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Anxyuuu|  楼主 | 2019-4-24 14:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
【接上一章节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  
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------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)】

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

162

主题

188

帖子

0

粉丝