I'm trying to run sample_pwm.py on a Jetson Orin Nano Super Devkit. I've installed jetson-gpio from source, configured pins 15, 32, 33 as PWM via jetson-io.py, and set the udev rules. However, I am getting the following errors while trying to run sample_pwm.py, both via python3 and ./run_sample.sh:
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/stas/jetson-gpio/samples/simple_pwm.py", line 66, in <module>
main()
File "/home/stas/jetson-gpio/samples/simple_pwm.py", line 46, in main
p = GPIO.PWM(output_pin, 50)
File "/home/stas/jetson-gpio/lib/python/Jetson/GPIO/gpio.py", line 571, in __init__
self._reconfigure(frequency_hz, 0.0)
File "/home/stas/jetson-gpio/lib/python/Jetson/GPIO/gpio.py", line 614, in _reconfigure
_set_pwm_period(self._ch_info, self._period_ns)
File "/home/stas/jetson-gpio/lib/python/Jetson/GPIO/gpio.py", line 179, in _set_pwm_period
with open(_pwm_period_path(ch_info), 'w') as f:
OSError: [Errno 22] Invalid argument
This error appears even if I use pins 15 or 32 instead of the default 33.
My Jetpack version is 6.2.2, and L4T version is 36.5.0.
I'm trying to run sample_pwm.py on a Jetson Orin Nano Super Devkit. I've installed jetson-gpio from source, configured pins 15, 32, 33 as PWM via jetson-io.py, and set the udev rules. However, I am getting the following errors while trying to run sample_pwm.py, both via python3 and ./run_sample.sh:
This error appears even if I use pins 15 or 32 instead of the default 33.
My Jetpack version is 6.2.2, and L4T version is 36.5.0.