Question
Why SPI_WaitOnFlagUntilTimeout fails and return timeout?
Hello,
I am using STM32F401 and specific SPI_TxCloseIRQHandler :
* @version V1.1.0
* @date 19-June-2014
As slave, this function fails in this:
/* Wait until Busy flag is reset before disabling SPI */
if(SPI_WaitOnFlagUntilTimeout(hspi, SPI_FLAG_BSY, SET, SPI_TIMEOUT_VALUE) != HAL_OK)
{
hspi->ErrorCode |= HAL_SPI_ERROR_FLAG;
}
I have mentioned that this does not always happen. So I, don't understand why sometimes happens.
