balena-io-experimental / artik-gpio-python

Simple example to blink an LED with the Samsung Artik 5 + 10
2 stars 1 forks source link

BUG: Failed to work on Artik710 #1

Open andrewjaykeller opened 6 years ago

andrewjaykeller commented 6 years ago

Problem:

Using GPIO results in bash: echo: write error: Device or resource busy

I tried to run this program on my Artik 710 and failed with:

Systemd init system enabled.
 main  systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
 main  Detected virtualization 'other'.
 main  Detected architecture 'arm64'.
 main  Set hostname to <0176368>.
 main  Traceback (most recent call last):
 main    File "main.py", line 9, in <module>
 main      LED = GPIO(pinNum, "out")
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
 main      self._open(pin, direction)
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
 main      raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
 main  periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
 main  Traceback (most recent call last):
 main    File "main.py", line 9, in <module>
 main      LED = GPIO(pinNum, "out")
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
 main      self._open(pin, direction)
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
 main      raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
 main  periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
 main  Traceback (most recent call last):
 main    File "main.py", line 9, in <module>
 main      LED = GPIO(pinNum, "out")
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
 main      self._open(pin, direction)
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
 main      raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
 main  periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
 main  Traceback (most recent call last):
 main    File "main.py", line 9, in <module>
 main      LED = GPIO(pinNum, "out")
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
 main      self._open(pin, direction)
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
 main      raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
 main  periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
 main  Traceback (most recent call last):
 main    File "main.py", line 9, in <module>
 main      LED = GPIO(pinNum, "out")
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
 main      self._open(pin, direction)
 main    File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
 main      raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
 main  periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy

Front logo Front conversations

andrewjaykeller commented 6 years ago

Any ideas or help is greatly appreciated!