Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: gst_retd on January 30, 2015, 01:57:01 PM

Title: A20 LIME2 SPI bus error
Post by: gst_retd on January 30, 2015, 01:57:01 PM
Hello all,

Can I ask a dummy question, how do you get SPI bus to work on lime2?

I have been trying to drive the SPI port on /dev/spidev2.0 thanks to the proposed python binding (pyA20LIME2 0.2) as root but I always get errno 22 retrun code when I try to read or write on the device (opening and closing the device are done properly).

Maybe I need some other steps to be done to get the device driver to be connected to the actual hardware? such as loading modules or so and link them to the /dev/spidevx.0 I want to address?

Isn't there a complete tutorial on how to interface an SPI based chip with the A20?

Best regards.
Title: Re: A20 LIME2 SPI bus error
Post by: JohnS on January 30, 2015, 02:40:11 PM
See my latest post here https://www.olimex.com/forum/index.php?topic=3686.0

BTW, I expect most would use C so don't expect a lot of replies...

John
Title: Re: A20 LIME2 SPI bus error
Post by: gst_retd on January 30, 2015, 03:00:19 PM
Thank you very much M. JohnS!

I'll bereading that post carefully and C is not a problem for me so once again thanks a lot.