The GPIO pins control not working on Jetson AGX Xavier Developer kit

Hello everyone,

I’m facing a problem with controlling the GPIO pins of the Jetson AGX Xavier developer kit.
The requirement i want to fulfil is to turn control pins 13 and 11 from board numbering, just setting them high and low for turning on a Quectel 5G modem.
I was using for GPIO numbering from jetsonhacks(sorry, can’t put the link because of the restrictions here)
Here as it shows the pins 11 and 13 corespond to the gpio428 and gpio424.

Firstly i tried the sysf method, so just trying to export using echo 424 > /sys/class/gpio/export, but when i check after that the gpio folder i don’t get exported the gpio424, so I can’t set the direction after that since the directory doesn’t exist.

After that i tried the library WiringPi, but that gave 0 result like the sysf method.

The last one i tried the python library called Jetson.GPIO, following all the instructions from this github page: GitHub - NVIDIA/jetson-gpio: A Python library that enables the use of Jetson's GPIOs
At this link there is a folder samples and i try to run simple_out,py, changing the sleep time to 10s, but when i measure pin 12 with the multimeter i have 0V there, so the high position is not triggered.

I also tried to change import RPi.GPIO as GPIO to import Jetson.GPIO as GPIO, but this doesn’t make any difference in my case.

Does anybody have any idea about the possible solution for this problem ?
Thanks in advance.

Which jetpack release is in use? There is a known issue in jp5.0 GPIO.

yesterday we checked code for ultrasonic sensor, it is working fine on NX platform but same code is not working on AGX Xavier platform ,I checked many codes related to I2C also it works fine on NX or Nano but AGX Xavier not working fine. may be AGX Xavier is defected module for embedded applications

I use jetpack 5.0-b114. Can you tell me more about the known issue that mentioned.
Thanks in advance.

Yeah, that’s very strange that the GPIO pins don’t work at all.

WARNING: Carrier board is not from a Jetson Developer Kit.
WARNNIG: Jetson.GPIO library has not been verified with this carrier board,
WARNING: and in fact is unlikely to work correctly.

for LED interfacing code we are getting above warning ,
we used following code for LED blinking but final result is LED is not blinking

#################################################
import Jetson.GPIO as GPIO
import time
led_pin = 15

GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
GPIO.setup(led_pin, GPIO.OUT)

while True:
time.sleep(2)
GPIO.output(led_pin, GPIO.HIGH)
print(“LED is ON”)
time.sleep(2)
GPIO.output(led_pin, GPIO.LOW)
print(“LED is OFF”)
time.sleep(2)
################################################

Actually i am working with ultrasonic sensor but i am not getting result from ultrasonic sensor,
so i tried for to test GPIO it is working fine or not, but LED code also not working

hello user17381,

there’s JP-5.0 known issue to control the pin via sysfs neither python, please use the register read/write utility to update the pinmux values for controlling the pin,
for example, $ sudo devmem2 <physical address> <size (b/h/w)> [value]
you may searching for the pinmux configuration file to obtain the address value.
thanks

is there any update for this? I want to move from NX to Orin for better performance and my project uses 3 GPIO outputs as well as I2C and UART outputs, and i can’t really use sudo or terminal each change i perform in the GPIO pins.
Tried both the Python Nvidia package and C++ JetsonGPio packages, neither work on any GPIO pin.

hello user17381,

the next JetPack public release will include the fixes, which will be available around Q3/2022.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.