Question
SPI interrupt problem
Posted on March 15, 2016 at 00:27
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. Thanks!