I have two SPI slaves connected to one SPI bus on the raspberry. One uses SPI mode 1 the other uses SPI mode 3.
In my C++ program I have two SPI_bus objects configured for each mode.
If I now try to read each device individually everything works perfectly.
But if I try to read both of them in one program I sometimes get communication errors where the communication is not successful (
ioctl returns -1)
Could the devices somehow get confused even though they are disabled through chipSelects when writing to the other device in the other SPI mode?