gpiotest
gpiotest copied to clipboard
i got this 'Failed to add edge detection' on pi4B 4G
i got this instead on pi4B 4G
root@raspberrypi:~# sudo python gpiotest.py
Failed to add edge detection
Originally posted by @tyjtyj in https://github.com/kgbplus/gpiotest/issue_comments/693561612
same with raspberry pi3B+, return error 'Failed to add edge detection'
Originally posted by @RiadySantoso82 in https://github.com/kgbplus/gpiotest/issue_comments/694761322
Please read this and this Try:
- Update you Raspberry OS install
- sudo apt update; sudo apt install --reinstall raspberrypi-sys-mods;sudo reboot
- Disable 1-wire interface with raspi-config
Sadly this fix did not help in my case on RPI 4 4GB with the latest 32bit Raspberry OS (Buster).
Based on the links even checking /dev/gpiomem
didn't help since all permissions were right.
Could you please:
- Provide me image of your current sd card?
- Try to clean install current version of Raspberry Pi OS and try again?
Same error for me as well. RPi4 4GB. Have multiple Python scripts working with GPIO just fine.
Hi,
Getting this on RPi 4 8G Kernel 6.1.21-v8+ Debian 11 / Bullseye
Happens when its initializing (initGpio) , in the GPIO.add_event_detect on channel 14. I have to unload and reload the i2c-bcm2835 module to get functionality back. Otherwise, if I jump that out for GPIO14 things seem to work fine. Why is 14 an issue?
Tnx, Tuc
Maybe it depends on the settings of a serial port which is on GPIO 14, 15? Could you please check?
So the hat I have doesn't mention what GPIO pins it uses, just I2C ports. So I'm not sure what GPIO its using.