Firstly, I’m kind of new to Jetson Nano. When I want to use the PWM function, I found neither pin32 nor pin31 can geneate the PWM signal. Here’s my operating steps:
Firstly, I install the C++ GPIO library from GitHub - pjueon/JetsonGPIO: A C++ library that enables the use of Jetson's GPIOs.
Then I configure pwm0 and pwm2 by:
And I compile and run simple_pwm.cpp from the project.
I connected an oscilloscope on pin 32, there is no waveform at all.
I also use
sudo cat /sys/kernel/debug/pwm
but it returns this(Upper Window)
That means pwm-2 is func normally, but I can’t see any wave on the oscillo!
Any ideas? Thanks a lot!