Skip to main content
宏段.1568
Visitor II
November 25, 2019
Question

STM32l071 USART1, FE interrupt generated, but I didn't clear it's status flag, Will it be interrupted all the time?

  • November 25, 2019
  • 1 reply
  • 597 views

..

This topic has been closed for replies.

1 reply

Ozone
Principal
November 25, 2019

> ... but I didn't clear it's status flag, ...

Not sure what you mean.

Unlike TXE and RXNE, the error flag are not cleared automatically by accessing the UART RX/TX register.

> Will it be interrupted all the time?

No. But it will prevent you from receiving any further characters (and interrupts) if set.

Check, handle, and clear the error flags inside the interrupt handler routine. Or the callback, if you work with Cube/HAL.