joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.45k stars 407 forks source link

Pi 4B and CM4 no PWM on GPIO40 #547

Open floatingloud opened 1 year ago

floatingloud commented 1 year ago

Hi, On the RPi model 4B and CM4 I get the following. Works okay on Pi 3 / CM3.

root@icx00000d:~# pigs hp 40 100 800000
-41
ERROR: no permission to update GPIO

Thank you in anticipation.

guymcswain commented 1 year ago

Same result on my pi400. Have you played with the gpio mask option? At least for the pi4b it should default to 'no permission'.

guymcswain commented 1 year ago

sudo pigpiod -x -1 No longer get this error on pi400.

floatingloud commented 1 year ago

Raspberry Pi CM4S hardware PWM on GPIO 40 fails silently, i.e. command is accepted, but no PWM created.