I am using the HAL receive_IT and transmit_IT successfully but occasionally as the transmit is being setup part way through the receive message the receive interrupt fails to get enabled and an overrun error occurs. Does anyone have a solution for th
I receive the data byte by byte and I can see that the only time that it fails is at the beginning of the transmit. It looks like the HAL is busy starting the transmit so it cannot re-enable the receive interrupt after the previous byte has been received. The HAL receive function returns busy and therefore the interrupt is not enabled.
Can the HAL cope with transmitting and receiving at the same time? It only happens when the first byte is being prepared for transmit.
Any advice would be greatly appreciated.