STM32H5 USART RXFIFO error handing
Hello,
I am developing a serial communication driver using USART.
I have enabled FIFO and RTO interrupt, to handle reception.
TRM says that the received data is stored in the RXFIFO together with the corresponding flags and that PE, FE, NE bits in ISR register are associated with the character in the RDR register.
I would like to know which is the correct way to handle rx error.
In particular, when the RTO event occours (reception done), for each character present in the RXFIFO, should I first read the RDR register and then check the error flags in the ISR register, or viceversa?
Regards,
Carlo
