I am not sure if this is the correct place to post my problem. I am very new to the
Beaglebone and embedded systems under Linux.
I am currently trying to get a 16bit ADC running via SPI1 on my Beaglebone Black.
My OS is Debian Wheezy with the 3.8.13 kernel. So far I have disabled the HDMI
interface and got the spidev1.0 and spidev1.1 running. (Aside from my actual
problem I am not sure what the last number represents.)
I have shot wired the P9_29 and P9_30 pins to test the communication. My program is written
in Python 2.7 and I am using the Adafruit_BBIO modul to control the SPI
(https://github.com/adafruit/adafruit-be ... -io-python).
When trying to send and receive one 16-bit word with the following code:
Code: Select all
import Adafruit_BBIO.SPI as SPI
print "Testing SPI: P9_29 and P9_30 need to be short wired"
spi = SPI.SPI()
spi.open(1,0)
spi.bpw = 16
print "Word length is : " + str(spi.bpw)
resp = spi.xfer([0x1234]) # transfer one word of two bytes length
print "Sending 0x1234 via xfer - receiving: " + str(resp)
spi.close() #close the port before exit
Does somebody have any experience with this type of problem, or am I missing something obvious?
Any help would be appreciated!
Best Regards,
Bumin