PWM not work in Jetson Nano

Hi every one, I’m newbie of Jetson Nano. I want to control motor by using PWM, but at first I try to test in led diode, following this lesson in Youtube: AI on the Jetson Nano LESSON 59: PWM on the GPIO Pins of the Jetson Nano - YouTube
And here is my code:

import RPi.GPIO as GPIO
import time


pin1 = 33
pin2 = 32

GPIO.setup(pin1, GPIO.OUT)
GPIO.setup(pin2, GPIO.OUT)

while True:


pwm = GPIO.PWM(pin1,100)


The problem is, I follow step by step the lesson but my led didn’t bright because there isn’t any pwm signal in pin 33. When I run code by terminal, it show:

So, does anyone can help me, please! I’m so gratefull

Are you using the devkit or custom board for Jetson Nano?

Could you help to refer to the following thread to generate PWM?
Strange behaviour with Jetson Nano DevKit PWM signal - #5 by WayneWWW

I use the Jetson Developer Kit as the picture, but I don’t know the version of its because I borrowed its for my project at my college.

First, I configure pwm pin following the link: Tegra Linux Driver
Then, I choose 2 pwm pins 32 and 33 by spacebar
Next, I draw schematic as under picture, I don’t use BJT:

And finally, I code as the code I show you above, and I don’t see any pwm pulse because the led doesn’t bright, and the error I show you above.
Maybe my code has bug somewhere, but when I code directly in terminal but nothing happen:

import RPi.GPIO as GPIO
GPIO.setup(32, GPIO.OUT)
GPIO.setup(33, GPIO.OUT)
pwm = GPIO.PWM(33,100)

Can you help me review my code, or when I wrong with “ValueError: Can’t create duplicate PWM objects”
Thanks you

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks