What causes SPI transmit to timeout on STM32WLE5 and how can I fix this?
I have used the Device Configuration Tool to set up an SPI1 peripheral on PB3, PB4, PB5 with manual control of the chip select, and polled (not interrupt driven). Writes to SPI slave chips registers execute without error, but register reads give a HAL_TIMEOUT error in HAL_SPI_TransmitReceive() because the RXNE flag (data in fifo) is never set.
The clock is enabled to the SPI and I can read/write SPI registers. CR1, CR2, SR values look sensible. I have not yet tried different pins, or SPI2.
Has this been tried, and can someone point to a known working example?
Unfortunately, the SPI examples that ST provide don't build (at least for me, with Eclipse), but in any event they are special cases: two processor chips connected, one as master and one as slave, with no chip select. A real example (e.g. talkig to an accelerometer chip) is missing.