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

Segmentation fault #83

Open
dpengftw opened this issue Apr 14, 2018 · 2 comments
Open

Segmentation fault #83

dpengftw opened this issue Apr 14, 2018 · 2 comments

Comments

@dpengftw
Copy link

dpengftw commented Apr 14, 2018

I'm running fairly simple code and I am getting seg. fault with sending values out.

GPIO.setup("XIO-P1", GPIO.OUT) ** gpio_set_direction: out ** ** open_value_file ** ** gpio_allowed: found match ** is_this_chippro: total system ram: 491.0 mb ** is_this_chippro: we are a chip ** gpio_allowed: pin allowed for chip or both and we're a chip ** gpio_allowed: found match ** is_this_chippro: total system ram: 491.0 mb ** is_this_chippro: we are a chip ** gpio_allowed: pin allowed for chip or both and we're a chip Segmentation fault

GPIO.setup("XIO-P1", GPIO.OUT) time.sleep(1) GPIO.output("XIO-P1", GPIO.LOW) GPIO.cleanup()

Here is my CHIP kernel version:
chip@chip:~/chipflaskgarage-master$ uname -a
Linux chip 4.4.13-ntc-mlc #1 SMP Tue Dec 6 21:38:00 UTC 2016 armv7l GNU/Linux

ii python-chip-io 0.7.1-1 armhf A module to control CHIP IO channels

@rysi3k
Copy link

rysi3k commented Dec 10, 2018

I have same problem.
When I try to set port value as non-root user is fails with seg fault. On root works great.

@xtacocorex
Copy link
Owner

This library has to be run as root.

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