CHIP_IO icon indicating copy to clipboard operation
CHIP_IO copied to clipboard

Intermittent GPIO RuntimeError

Open mkelland opened this issue 7 years ago • 0 comments

I've been running this program a fair bit over the last 24h. Python command:

GPIO.setup("CSID1", GPIO.OUT, initial=1)
GPIO.output("CSID1", True) 

And I intermittently get the following error:

RuntimeError: Could no write 1 on channel CSID1. (gpio_number: -1 found for XIO-P0
gpio_number: -1 found for XIO-P1
gpio_number: -1 found for XIO-P2
gpio_number: -1 found for XIO-P3
gpio_number: -1 found for XIO-P4
gpio_number: -1 found for XIO-P5
gpio_number: -1 found for XIO-P6
gpio_number: -1 found for XIO-P7
open_value_file: could not open '/sys/class/gpio/gpio133/value' (No such file or directory)
gpio_get_value: could not open GPIO 133 value file)

Note that this only occurs on occasion, and so is likely challenging to debug. I'll also note that its possible that it's my code - it's not as simple as the snippet above.

Any suggestions would be most appreciated.

mkelland avatar Mar 04 '18 04:03 mkelland