2016-03-14 04:27 PM
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!2016-03-14 10:04 PM
Is it receiving more than 2 bytes before you handle it? Are you handling the interrupt correctly?
Could be a lot of things. TXE shouldn't be a factor if you're receiving.2016-03-15 12:29 AM
2016-03-15 01:48 AM
That's exactly the point that I do not get - how can I receive more than 2 bytes in master mode if I only ask for two?
What I meant with TXE is that the interrupt routine is called correctly when I send data.2016-03-15 02:28 AM
I tried resetting RXNE, but it did not help.