When i upgrade my jetson orin nano to 6.2 super mode, i want to control gpio-466 (PX.04 ) as the past time using jetpack 5.14,i found /sys/class/gpio/ folder had removed,so i have to using gpiod to control the pin of uart0_tx.
During the execution of the above command, I used an oscilloscope to measure the pin and found that it was at a high level.But when gpioset command exec finished, gpioget command exec get value 0.
The bit 10 should not be set if you want to use it as GPIO.
It seems you didn’t apply the change correctly.
Or it may be caused from that you did’t configure the pinmux for PX.04 before use.
Please configure it as following in pinmux spreadsheet.
Thank you very much for your help. After implementing the information you provided, I also need to copy the previously modified Image to the development board so that I can see the square wave through the oscilloscope.
#!/bin/bash
CHIP="gpiochip0"
LINE=118
gpiodetect >/dev/null 2>&1 || { echo "libgpiod tools not found. Please install with: sudo apt install gpiod"; exit 1; }
echo "Toggling $CHIP line $LINE every 0.5s. Press Ctrl+C to stop."
while true; do
gpioset $CHIP $LINE=1
sleep 0.5
gpioset $CHIP $LINE=0
sleep 0.5
done