Skip to content

Intermittent GPIO RuntimeError #82

@mkelland

Description

@mkelland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions