CHIP_IO icon indicating copy to clipboard operation
CHIP_IO copied to clipboard

Segmentation fault

Open dpengftw opened this issue 7 years ago • 2 comments

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

dpengftw avatar Apr 14 '18 01:04 dpengftw

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

rysi3k avatar Dec 10 '18 08:12 rysi3k

This library has to be run as root.

xtacocorex avatar Dec 29 '18 21:12 xtacocorex