Test all the RB interfaces in 10 mins in command Line

Refer the Hardware and System reference manual to check out the PIN Numbers and PORT numbers etc. of respective interfaces.

Hardware manual

In case of any doubts you can Ask questions in RuggedBoard forum.

Targeted Hardware

SOM Version: PICM-001-A1

CB : RuggedBoard-A5D2x

CB Version : RB-A5D2x-V1.1

Targeted Software

RBNR-20.0.0/RBSD-20.0.0

- AT91Bootstrap-3.8.12

- Uboot-2018-07

- Linux Kernel v4.9.151

- Yocto 2.5.2 (sumo HEAD commit 623b77885051)

Description

  • To test GPIO let us use the On-board LED on RuggedBoard. For this demonstration let's use LED_1 which is connected to GPIO PC13 (Refer hardware manual for more information).

Required Hardware

  • RuggedBoard-A5D2x

Test Case:

  1. Boot the board from NOR/MMC. After booting check toggling of USER LED.

Step 1:

Type the following commands in a sequence to toggle led.

echo 77 > /sys/class/gpio/export
echo out > /sys/class/gpio/PC13/direction
echo 1 > /sys/class/gpio/PC13/value
echo 0 > /sys/class/gpio/PC13/value
echo 1 > /sys/class/gpio/PC13/value
echo 0 > /sys/class/gpio/PC13/value

Expected o/p

root@ruggedboard-a5d2x:~# echo 77 > /sys/class/gpio/export
root@ruggedboard-a5d2x:~# echo out > /sys/class/gpio/PC13/direction
root@ruggedboard-a5d2x:~# echo 1 > /sys/class/gpio/PC13/value
root@ruggedboard-a5d2x:~# echo 0 > /sys/class/gpio/PC13/value

Try the above steps again replacing 77 with 81 & 83 respectively to toggle other two LEDs present on the board.

You can use remaining two user LED or any GPIO PIN mentioned in the Hardware manual with the same method. In case of any doubt post your detailed question into the RuggedBoard forum.

Last updated