2021-01-20 11:35 PM
I use STM32F407IGT6 as a SPI master.
I use SPI in interrupt mode with HAL_SPI_TransmitReceive_IT(). In ISR HAL_SPI_IRQHandler(), hspi->TxISR(hspi); is always executed while hspi->RxISR(hspi); is never executed.
I traced down in HAL_SPI_IRQHandler().
According to the STM32F407 reference manual, "Clearing the RXNE bit is performed by reading the SPI_DR register". Why if(SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) == RESET) clear RXNE?
Is there any setting I need to do?
Best regards,
Bao Tong