Hello guys,
I just got myself a Raspberry pi 5B with 4GB RAM. I want to set the 4channel hardware PWM that is specified in the peripheral datasheet for it, but I can't seem to find any working solution. I tried setting gpio pin 18 and 19 to alt5 in config.txt with:
gpio=18,19=a5
as it seems to be the PWM alternative function according to this image: https://blog.boochow.com/wp-content/upl ... -table.png
But the raspberry pi 5 does not seem to recognize it: Invalid gpio command '18,19=a5'
How exactly do I get it?
I also tried:
dtoverlay=pwm-2chan,pin=12,func=4,pin2=18,func2=2
dtoverlay=pwm-2chan,pin=13,func=4,pin2=19,func2=2
But this too did not work completely. I only got 2 of the pins on the PWM0 as channel 3 and 4. PWM1 never appeared.
Please help me.
I just got myself a Raspberry pi 5B with 4GB RAM. I want to set the 4channel hardware PWM that is specified in the peripheral datasheet for it, but I can't seem to find any working solution. I tried setting gpio pin 18 and 19 to alt5 in config.txt with:
gpio=18,19=a5
as it seems to be the PWM alternative function according to this image: https://blog.boochow.com/wp-content/upl ... -table.png
But the raspberry pi 5 does not seem to recognize it: Invalid gpio command '18,19=a5'
How exactly do I get it?
I also tried:
dtoverlay=pwm-2chan,pin=12,func=4,pin2=18,func2=2
dtoverlay=pwm-2chan,pin=13,func=4,pin2=19,func2=2
But this too did not work completely. I only got 2 of the pins on the PWM0 as channel 3 and 4. PWM1 never appeared.
Please help me.
Statistics: Posted by culpable32 — Mon Feb 16, 2026 3:13 pm — Replies 2 — Views 68