Documentation/Allspark2-Orin NX WikiEnglish · NX
Browse documentation
7 Developer Guide

7.3 Buttons

When flashing an image file, press the REC button before applying power and hold it for 3 seconds to enter OTG mode.

1 min read · English documentation

Recovery Button

When flashing an image file, press the REC button before applying power and hold it for 3 seconds to enter OTG mode.

Reset Button

Press and hold the RST button for 1 second to restart the system.

User-Programmable Button

Internally, this is a standard bidirectional GPIO mapped to port 450. Users can define its function.

Test

Test Equipment

Power adapter and Allspark-Orin NX main unit.

Test Objective

Test the functionality of the button-related circuitry.

Test Procedure

Test the USER Button First

Hardware Pin Name Internal Software Name Internal Software Number
gpio08 PQ.02 450
  1. Enter the password to become the superuser.
sudo su
  1. Export GPIO 450 as follows.
echo 450 > /sys/class/gpio/export
  1. Set the GPIO as an input.
echo in > /sys/class/gpio/PQ.02/direction
  1. Hold down the USER button and enter the command to verify that the level is low. Release the USER button and enter the command to verify that the level is high.
cat /sys/class/gpio/PQ.02/value 

图片.png