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

Compute Module • Re: PWM Not Working with dtoverlay=pwm-2chan on GPIO 18 (Raspberry Pi CM4)

$
0
0
Thank you for the suggestion! Here are the results of dmesg -l err,warn:

The logs show:


pinctrl-bcm2835 fe20a000.gpio: pin GPIO18 already requested by fe215080.spi
pinctrl-bcm2835 fe20c000.pwm: status -22
bcm2835-pwm fe20c000.pwm: Error applying setting, reverse things back
It seems that GPIO 18 is being claimed by the SPI module (fe215080.spi), which is causing a conflict with the PWM module (fe20c000.pwm).

In my /boot/config.txt, I have the following configuration:


dtoverlay=spi1-3cs
dtoverlay=pwm-2chan,pin=18,func=2
SPI and PWM are likely conflicting over GPIO 18.

Statistics: Posted by dgy411852 — Fri Jan 03, 2025 10:07 pm



Viewing all articles
Browse latest Browse all 4874

Trending Articles