2020-08-24 03:08 AM
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?
2020-08-24 06:25 AM
UART Receiver timeout interrupt (RTO)
2020-08-24 06:39 AM
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.