I’m having issues with reading a two byte data stream from a slave Arduino with a BBB as Master.
The voltages on the pins indicate that the MISO pin on the BBB is recieving the correct voltages for a successful transmission of the slave replying with the correct data.
However in software the data is not correct. For example I expect [0, 114] to be replied but the software output indicates [247, 247] and then [255, 255] on subsequent transmissions
The device tree overlay is as per that given by hipster circuits: http://hipstercircuits.com/enable-spi-with-device-tree-on-beaglebone-black-copy-paste/
And I am using the SPI library provided by IOoo/piranna. https://github.com/piranha32/IOoo/blob/master/include/SPI.h
The Write function works accurately, however when recieving a reply both the spi::xfer1 and spi::read both return incorrect (but different) values.
I’ve got hardware to conduct level conversion on that pin to bring it to 3.3V which works. Additionally both devices are in SPI mode 1.
I’m just out of ideas as to what could be wrong. Any suggestions?