gpiotest icon indicating copy to clipboard operation
gpiotest copied to clipboard

i got this 'Failed to add edge detection' on pi4B 4G

Open kgbplus opened this issue 4 years ago • 9 comments

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

kgbplus avatar Oct 19 '20 06:10 kgbplus

same with raspberry pi3B+, return error 'Failed to add edge detection'

Originally posted by @RiadySantoso82 in https://github.com/kgbplus/gpiotest/issue_comments/694761322

kgbplus avatar Oct 19 '20 06:10 kgbplus

Please read this and this Try:

  1. Update you Raspberry OS install
  2. sudo apt update; sudo apt install --reinstall raspberrypi-sys-mods;sudo reboot
  3. Disable 1-wire interface with raspi-config

kgbplus avatar Oct 19 '20 06:10 kgbplus

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.

Gaboris avatar Jan 25 '21 09:01 Gaboris

Could you please:

  1. Provide me image of your current sd card?
  2. Try to clean install current version of Raspberry Pi OS and try again?

kgbplus avatar Jan 28 '21 18:01 kgbplus

Same error for me as well. RPi4 4GB. Have multiple Python scripts working with GPIO just fine.

EdKok avatar Aug 15 '21 09:08 EdKok

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

tuctboh avatar Jul 03 '23 18:07 tuctboh

Maybe it depends on the settings of a serial port which is on GPIO 14, 15? Could you please check?

kgbplus avatar Jul 20 '23 12:07 kgbplus

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.

tuctboh avatar Jul 20 '23 21:07 tuctboh