-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPI Master - second device (spi_bus_add_device) does not work (IDFGH-91) #1080
Comments
Can you expand a bit on 'does not operate properly'? What symptoms do you notice? |
Due to time constraints, I did not have the opportunity to explore what exactly "does not operate properly" entails. The configuration being tested is an ILI9341 SPI display as the first SPI device and a XPT2046 touch panel interface as the second SPI device. The first device is configured in half duplex mode while the second is full duplex. When either is the only device added (spi_bus_add_device), correct operation is observed. When the display is added followed by the touch panel, the touch panel does not report correct data. Changing the display device to full duplex yields correct operation of both devices. |
Hi @OtherCrashOverride , Sorry for long long no-reply .... The issue was reported quite long ago, during which we have introduced a similar issue on 4.0 and fix it on master (see: #4641). (The fix backporting to 4.0, 4.1 and 4.2 are in progress....) Please help test again, or wait for patches to 4.0-4.2. (they will also close this issue upon merged) |
When using spi_bus_add_device to add two devices to a SPI bus with different CS lines, the second device does not operate properly if one is half duplex and the other full duplex. If both are full duplex, the issue does not occur.
The text was updated successfully, but these errors were encountered: