Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6003

Troubleshooting • PWM issue with Raspberry Pi 5 4GB

$
0
0
Hi,

Raspberry Pi OS Bookworm Lite 64bit with all available updates installed.
I can't get hardware pwm working with rpi_hardware_pwm library. https://github.com/Pioreactor/rpi_hardware_pwm
I'm using chip=2 as instructed on GitHub. I don't think the problem is in the library at all.
I'm using

Code:

dtoverlay=pwm
on config.txt

On start I see error:

Code:

clk: couldn't set clk_pwm0 clk rate to 100000000 (-22), current rate: 30720000
Command: "lsmod | grep pwm" gives nothing.

Command: "pinctrl get 18" gives:

Code:

18: a3    pd | lo // PIN12/GPIO18 = PWM0_CHAN2
Same code works with Raspberry pi 4.

Statistics: Posted by valtsu23 — Mon Mar 04, 2024 8:23 am



Viewing all articles
Browse latest Browse all 6003

Latest Images

Trending Articles



Latest Images