bugAVR Downloader/UploaDEr - Bugs: bug #44218, linuxgpio not working with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44218: linuxgpio not working with raspberryPi 2. "Can't open gpioX/direction" : Permission denied. Fixed by little delay

Submitter:  None
Submitted:  Mon 09 Feb 2015 11:31:25 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Rizlik
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

Mon 09 Feb 2015 11:31:25 PM UTC, original submission:  

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




Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #33041:  gpio_fix.patch added by None (568B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-09 None Attached File- Added gpio_fix.patch, #33041

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code