打印
[嵌入式Linux]

明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(2)

[复制链接]
559|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Anxyuuu|  楼主 | 2019-1-21 10:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
【接上一章节明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(1)】

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------
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------
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------
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  

10.2  ECSPI2 测试
位置:J7: 8,10
测试设备:/dev/spidev1.0
测试指令
# /my-demo/linux-4.1.15/MY_SPIDEV_TEST_L4115_MYIMX6A9.out -D /dev/spidev1.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

11  Watchdog 测试11.1  超时复位测试
# /unit_tests/wdt_driver_test.out 10 15 1  

Starting wdt_driver (timeout: 10, sleep: 15, test: write)
Trying to set timeout value=10 seconds
The actual timeout was set to 10 seconds
Now reading back -- The timeout is 10 seconds


U-Boot 2016.03-svn270 (Oct 09 2018 - 14:44:15 +0800)

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 45C
Reset cause: WDOG
Board: MYZR i.MX6 Evaluation Kit

11.2  喂狗测试
# /unit_tests/wdt_driver_test.out 4 2 1 &  

[1] 748
Starting wdt_driver (timeout: 4, sleep: 2, test: write)
Trying to set timeout value=4 seconds
The actual timeout was set to 4 seconds
Now reading back -- The timeout is 4 seconds

12  RTC 测试
查看当前系统时钟
# date  

Wed Sep 26 00:27:45 UTC 2018
查看当前RTC芯片时钟
# hwclock   

Wed Sep 26 00:28:01 2018  0.000000 seconds
设置系统时钟,并同步到RTC芯片
# date -s "2018-09-21 12:34:56"  

Fri Sep 21 12:34:56 UTC 2018  
将系统时钟写入硬件时钟
# hwclock -w  
断电重启评估板
查看当前系统时钟
# date  

Fri Sep 21 12:36:11 UTC 2018  
查看当前RTC芯片时钟
# hwclock  

Fri Sep 21 12:36:16 2018  0.000000 seconds  

【下章节为明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(3)】

相关帖子

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

本版积分规则

162

主题

188

帖子

0

粉丝