rewolff / raspduino_tools

BitWizard Raspduino tools.
1 stars 2 forks source link

Platformio upload error #1

Open glynhudson opened 8 years ago

glynhudson commented 8 years ago

I am trying to upload to raspduino via platfomIO, I am getting errror:

scons: *** [upload] /sys/class/gpio/gpio18/direction: Permission denied

I'm not sure why there is a permissions error since I can successfully control the GPIO using non root commands (pi user) bash e.g.

   echo 18 >  /sys/class/gpio/export
   echo out > /sys/class/gpio/gpio18/direction 
   echo 1 > /sys/class/gpio/gpio18/value 
   echo 0 > /sys/class/gpio/gpio18/value 
   echo 18 >  /sys/class/gpio/unexport 

Can you see what I'm missing? Thanks.

rewolff commented 7 years ago

Can you do "strace -o strace.out -f " before the command that produces the permission error? Analyse the output file (strace.out) or Email it to me. Or put it up somewhere and provide a link here.