Watchdog Test; Camera Test; Canbus Test - Advantech ROM-5620 User Manual

Nxp i.mx8x cortex-a35 smarc 2.0/2.1 computer-on-module
Table of Contents

Advertisement

Step 4: Read value and set output value then check
root@imx8qxprom5620a1 : ~#
0
root@imx8qxprom5620a1 : ~#
root@imx8qxprom5620a1 : ~#
1
4.1.12

Watchdog Test

System will reboot after 1 sec
root@imx8qxprom5620a1 : ~# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0
- - - - Running < /unit_tests/watchdog/wdt_driver_test.out > test - -
Starting wdt_driver (timeout: 1, sleep: 2, test: ioct1)
Trying to set time out value=1 seconds
Uboot 2018.03-5620A1AIM20LIV90064+g5ebc362 (Jan 10 2020 - 17:39:04 +0000)
CPU:
Freescale i.MX8QXP revB A35 at 1200 MHz at 33C
Model: Freescale i.MX8QXP ROM-5620 A1
4.1.13

Camera Test

Please connect MIPI-CSI2 camera (OV5640) to CN39 FPC connector.
Preview
# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-
raw,width=640,height=480 ! waylandsink
Capture
# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! video/x-
raw,width=640,height=480 ! jpegenc ! filesink location=sample.jpeg
4.1.14

CANbus Test

Step 1: Connect CAN0_D+ to CAN1_D+ and CAN0_D- to CAN1_D-
Step 2: Set CAN0 and CAN1 up
root@imx8qxprom5620a1:~# ip link set can0 up type can bitrate 125000
[
314.402318] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@imx8qxprom5620a1:~# ifconfig can0 up
root@imx8qxprom5620a1:~# ip link set can1 up type can bitrate 125000
[
322.355701] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
root@imx8qxprom5620a1:~# ifconfig can1 up
Step 3: candump can0
root@imx8qxprom5620a1:~# candump can0 &
[1] 3909
cat
/sys/class/gpio/gpio2/value
echo
1
>
/sys/class/gpio/gpio1/value
cat
/sys/class/gpio/gpio2/value
31
ROM-5620 User Manual

Advertisement

Table of Contents
loading

Table of Contents