I am trying to send pwm commands in Python thanks to the Jetson.GPIO library on the NX Xavier. I have manage to configure pin 33 to use it with pwm and the sample code that is given on the Jetson.GPIO github repository works.
However, when I try to increase the pwm frequency from 50Hz to 100Hz or 1000Hz, the following error gets raised:
File “/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py”, line 245, in _set_pwm_period
OSError: [Errno 22] Invalid argument
It seems that the error comes from the configuration or from the hardware.
Do you know what changes I should implement to be able to increase the pwm frequency ?
Is there some sort of pwm frequency limitation ?