st67w61 holds MISO pin low and doesn't allow other slaves to communicate
Summary: When enabled st67w61 forcefully keeps MISO low and doesn't let other slaves use SPI.
In our setup:
- STM32L452: Is master SPI with latest mission_profile_t02.
- st67w61: Is SPI slave 1 with dedicated CS pin
- 3rd party SPI slave 2 with dedicated CS pin
SPI bus speed is 2MHz, and CPOL, and CPHA are 0
Reproducing problem:
1. st67w61 is enabled (CHIP_EN is HIGH),
- - BLE initialized W6X_Ble_Init() successfully
- - Advertisement starts
- - We are able to pair with st67w61 successfully via our phone
- - We then try to start SPI slave 2 with no success. Data is being sent via MOSI but MISO stays low. We have tried this with other types of slaves with no success.
- After turning OFF (CHIP_EN to LOW) st67w61 module, we can communicate successfully with Slave 2. However we need to have both slaves enabled for our application to work.
Note that CS pins are in the correct state.
It seems like the st67w61 forcefully pulls MISO line low when enabled and doesn't let other SPI devices communicate via it. The only way to allow Slave 2, to work is by turning OFF (CHIP_EN to LOW) st67w61 module.
I'm wondering if this is a firmware bug in st67w61 module. Have you tried cosharing SPI with other slaves. NOTE that if we either turn off or remove ST67w61, other slave devices communicate fine so there's no issue with our HW or code. Please help.
