I’ve been trying to get GPIO working with an official Nvidia Jetson Orin Nano Developer Kit, but I keep on running into this error and I was wondering if anyone knew how to fix it.
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/Jetson/GPIO/init.py”, line 1, in
from .gpio import *
File “/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py”, line 70, in
model, JETSON_INFO, _channel_data_by_mode = gpio_pin_data.get_data()
File “/usr/lib/python3/dist-packages/Jetson/GPIO/gpio_pin_data.py”, line 438, in get_data
raise Exception(‘Could not determine Jetson model’)
Exception: Could not determine Jetson model
here’re some examples for using libgpiod,
please make sure these setting are there in your pinmux BCT file for the pin you want to control. and please remember the function has to be rsvd. nvidia,tristate = <TEGRA_PIN_DISABLE>; nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Commands, gpioget, gpiofind, gpioinfo.
Here’s an example to configure tegra234-gpio-aon/gpio-327/PBB.03 # gpioinfo gpiochip1|grep PBB.03 line 11: "PBB.03" unused input active-high
Toggle the pin state by gpioset. # gpioset --mode=exit --drive=push-pull gpiochip1 11=1 # gpioinfo gpiochip1|grep PBB.03 line 11: "PBB.03" unused output active-high
I am assuming you did install this sudo pip3 install Jetson.GPIO
The only board we had crapped out and it was sent back. No one has stock in the USA so until we can purchase some more boards I have no way to work on this, sorry.
Also, the device tree was modified to enable outputs.