Skip to main content
DMeix.1
Associate II
August 24, 2020
Question

Catching an incomplete transmission

  • August 24, 2020
  • 2 replies
  • 764 views

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?

This topic has been closed for replies.

2 replies

Pavel A.
August 24, 2020

UART Receiver timeout interrupt (RTO)

TDK
August 24, 2020

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""."