You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use avrdude with my raspberryPi2 using linuxgpio programmer I got:
"Can't open gpioX/direction" : Permission denied
When stepping the code in gdb the problem is not reproduced, so I thought that the problem is that avrdude try to change direction too fast after he exported the gpio pin.
Indeed adding a little delay before trying to switch direction fixes the problem. I attach a little patch that solve the problem for me.
Same problem is shown by
$ echo 2 > /sys/class/gpio/export; echo in > /sys/class/gpio2/direction
Rizlik rizlik@inventati.org
Mon 09 Feb 2015 11:31:25 PM UTC
Hi,
When trying to use avrdude with my raspberryPi2 using linuxgpio programmer I got:
"Can't open gpioX/direction" : Permission denied
When stepping the code in gdb the problem is not reproduced, so I thought that the problem is that avrdude try to change direction too fast after he exported the gpio pin.
Indeed adding a little delay before trying to switch direction fixes the problem. I attach a little patch that solve the problem for me.
Same problem is shown by
$ echo 2 > /sys/class/gpio/export; echo in > /sys/class/gpio2/direction
So isn't a problem of avrdude.
Hope it helps,
rizlik
file #33041: gpio_fix.patch
This issue was migrated from https://savannah.nongnu.org/bugs/?44218
The text was updated successfully, but these errors were encountered: