Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C2 - Segmentation fault #4

Open
ritchie-tg opened this issue Mar 9, 2019 · 3 comments
Open

C2 - Segmentation fault #4

ritchie-tg opened this issue Mar 9, 2019 · 3 comments

Comments

@ritchie-tg
Copy link

ritchie-tg commented Mar 9, 2019

Just wanted to inform you of an error as I ran this on a Odroid C2.

#!/usr/bin/python3

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

for i in range(0,28):
GPIO.setup(i, GPIO.OUT)
GPIO.output(i, GPIO.LOW)

dev@odroid:~$ sudo ./a.py Segmentation fault

@jfath
Copy link
Owner

jfath commented Apr 29, 2019

Thanks - I don't own a C2, so no way to test.

@Mango-kid
Copy link

Also saw this on the XU4.

@ritchie-tg
Copy link
Author

Sorry, forgot about this. I don't even own a C2 anymore lol.

But I'm pretty sure the error is generated when you call the gpio improperly ... whether that be they're either not setup in code or out of range. Though they can be out of range if you don't set them up right like BCM and whatever the other convention is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants