Thank you! I used the latest 3.12 kernel and installed the legacy version.
Now my program works fine!
By the way, why doesn't the newest kernel support the capes?
lauantai, 23. marraskuuta 2013 20.28.13 UTC+2 don kirjoitti:
>
> On 11/23/2013 08:24 AM, JJ wrote:
>
> I managed to compile BBIO and before that I installed python2 packages.
> Now there's a new problem, let's see following code
>
>
> import Adafruit_BBIO.ADC as ADC
>
>
> ADC.setup()
> value = ADC.read("P8_36")
> voltage = value * 1.8 #1.8V
> print voltage
>
> It should print the analog pin 5 value, but this error appears:
> # python2 voltage.py
> Traceback (most recent call last):
> File "voltage.py", line 3, in <module>
> ADC.setup()
> RuntimeError: Unable to setup ADC system. Possible causes are:
> - A cape with a conflicting pin mapping is loaded
> - A device tree object is loaded that uses the same name for a
> fragment:helper
>
>
> --
> For more options, visit
> http://beagleboard.org/discuss<http://www.google.com/url?q=http%3A%2F%2Fbeagleboard.org%2Fdiscuss&sa=D&sntz=1&usg=AFQjCNEpMSpbklk_hXqEMMJhBr1sf-iMfQ>
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> which arch kernel are you running? You should be on the legacy one for the
> beagle if you're working with capes also you should make sure you're using
> dtc-overlay as opposed to dtc.
>
> This post has some information in regards to the device tree and arch
> linux arm.
> http://www.adminempire.com/beaglebone-basics-for-arch-linux/<http://www.google.com/url?q=http%3A%2F%2Fwww.adminempire.com%2Fbeaglebone-basics-for-arch-linux%2F&sa=D&sntz=1&usg=AFQjCNEXVNA24Rw8kMIndpb23A79-5Yeug>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.