AnsweredAssumed Answered

SPI interrupt problem

Question asked by Physicist on Mar 15, 2016
Latest reply on Mar 15, 2016 by Physicist
Good evening!
I am trying to move from blocking to nonblocking SPI communication but I have trouble getting the RXNE interrupts to run, while TXE works fine.

Running "HAL_SPI_Receive(hspi, buffer, 2, TIMEOUT)" works, but when I do
"HAL_SPI_Receive_IT(hspi, buffer, 2)" there is no call happening to HAL_SPI_RxCpltCallback, but instead HAL_SPI_ErrorCallback is called with the OVR-flag set.

The SPI configuration code is from CubeMX with global interrupt enabled.
Any insights would be greatly appreciated.