cancel
Showing results for 
Search instead for 
Did you mean: 

Catching an incomplete transmission

DMeix.1
Associate II

I use the UART on a STM32F7 with DMA. Is there any way to detect a stop of an incoming transmission with an interrupt e.g. with HAL_UART_ErrorCallback? If I expect too many characters or not all characters are transmitted?

2 REPLIES 2
Pavel A.
Evangelist III

UART Receiver timeout interrupt (RTO)

TDK
Guru

There's an USART_SR_IDLE flag and USART_CR1_IDLEIE interrupt enable to detect the end of a transmission.

For transmission errors, there is an USART_CR3_EIE interrupt enable which enable the interrupt for various error conditions.

If you feel a post has answered your question, please click "Accept as Solution".