[SOLVED] Enable SPI
I have been trying to get a zigbee module to interface with the UPboard over SPI for some time.
I've had success across USB using the pySerial library and I am trying to convert my code to be used on SPI with the MRAA library and I have the error: "Spi bus can not be initialized".
I think my problem may be that the module is not enabled in the kernel as /dev/spidev0.0 does not appear. I've followed the instructions on the wiki page as well as the correction found here: https://forum.up-community.org/discussion/comment/8488#Comment_8488.
Before I start digging around the kernel I wanted to see if I've exhausted all my options to make spidev appear.
dev = mraa.Spi(0)
ValueError: Error initialising SPI bus
Ubuntu 16.04 LTS
Are you using the Up-board kernel (find out with 'uname -r')?
kevink New Member Posts: 7 ✭
I followed the instructions to reinstall the upboard kernel here: https://wiki.up-community.org/Ubuntu
when I run "uname -srv" it returns:
Linux 4.10.0-42-generic #5000~upboard11-Ubuntu SMP
It seems that reinstalling the kernel has worked. Thanks.
EDIT: How do I mark this as resolved?
Thank @kevink ,
Could mark it as solved.
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 548 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral