On 13.06.18 14:27, Freek de Kruijf wrote:
> I am using a Raspberry Pi 1B to count some pulses on one of the GPIO pins, 
> using Python script. This script runs fine on an older version of Tumbleweed, 
> namely 20160625.
> When I run my script on the current version, 20180502, it throws an error 
> message:
>     GPIO.add_event_detect(PIN, GPIO.FALLING, callback=cb, bouncetime=100)
> RuntimeError: Failed to add edge detection

Try to find out who throws that error. Maybe just grep for the error
message in the python library directory.

Another thing that may give hints is to run strace on your application
and see what it tries to access before and what doesn't work?

> I found a message from Frank Kunz about using the pins via sysfs, of which I 
> have the feeling this related. Maybe not!
> The solution that was mentioned was installing the pinmux driver. However I 
> can't find such a thing.

The in-kernel pinmux driver is =y, so no need to install or load anything:


https://kernel.opensuse.org/cgit/kernel-source/tree/config/armv6hl/default#n3208


Alex
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to