Gpio Test; Watchdog Test - Advantech ROM-5720 User Manual

Arm-based smarc 2.0 module with nxp i.mx8m arm cortex a53 processor
Table of Contents

Advertisement

4.1.11

GPIO Test

GPIO pin
SMARC Pin # SMARC Pin Name
P108
P109
P110
P111
P112
P113
P114
P115
P116
P117
P118
P119
Loopback test (Take GPIO4 and GPIO5 as an example)
Step 1: Connect GPIO4 and GPIO5
Step 2: Export GPIO interface
root@imx8mqrom5720a1 : ~#
root@imx8mqrom5720a1 : ~#
Step 3: Set direction
root@imx8mqrom5720a1 : ~#
root@imx8mqrom5720a1 : ~#
Step 4: Read value and set output value than check
root@imx8mqrom5720a1 : ~#
1
root@imx8mqrom5720a1 : ~#
root@imx8mqrom5720a1 : ~#
0
4.1.12

Watchdog Test

System will reboot after 1 sec
root@imx8mqrom5720a1 : ~# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0
- - - - Running
- -
Starting wdt_driver (timeout:
Trying to set time out value=1 seconds
CPU Ball Name
GPIO0/CAM0_PWR MX8MQ_IOMUXC_GPIO1_IO03 3
GPIO1/CAM1_PWR MX8MQ_IOMUXC_GPIO1_IO05 125
GPIO2/CAM0_RST MX8MQ_IOMUXC_SAI3_RXC
GPIO3/CAM1_RST MX8MQ_IOMUXC_GPIO1_IO06 6
GPIO
MX8MQ_IOMUXC_GPIO1_IO00 0
GPIO5
MX8MQ_IOMUXC_SPDIF_RX
GPIO6
MX8MQ_IOMUXC_SAI5_RXFS
GPIO7
MX8MQ_IOMUXC_SAI5_RXD0
GPIO8
MX8MQ_IOMUXC_GPIO1_IO08 8
GPIO9
MX8MQ_IOMUXC_SAI5_RXD2
GPIO10
MX8MQ_IOMUXC_SAI3_RXFS
GPIO11
MX8MQ_IOMUXC_SAI1_RXFS
echo
0
echo
132
echo
out
echo
in
cat
/sys/class/gpio/gpio2/value
echo
0
cat
/sys/class/gpio/gpio2/value
< /unit_tests/watchdog/wdt_driver_test.out >
1,
>
/sys/class/gpio/export
>
/sys/class/gpio/export
>
/sys/class/gpio/gpio1/direction
>
/sys/class/gpio/gpio2/direction
>
/sys/class/gpio/gpio1/value
sleep:
2,
test:
ioct1)
23
ROM-5720 User Manual
Kernel
Default
GPIO
Direction
In
In
5
In
In
In
132
In
83
In
85
In
In
87
In
124
In
96
In
test - -

Advertisement

Table of Contents
loading

Table of Contents