Issue with uart USART_ISR_EOBF bit
Hi
I have a stm32L433, and setup Uart1 for standard TX and RX with interrupt for both send and receive (9600N81 setup). I don't use any hardware handshake . Within the IRQ routine occasionally the USART_ISR_EOBF bit in the ISR is set , and I am not using smartcard mode , and the EOBIE bit is not set in the CR2 register.. I have the below , and even after its cleared it then keeps getting set and cant get any data.
void USART1_IRQHandler(void)
{
unsigned char data;
if(USART1->ISR & USART_ISR_FE)
USART1->ICR |= USART_ICR_FECF;
if(USART1->ISR & USART_ISR_EOBF)
USART1->ICR |= USART_ICR_EOBCF;
if(USART1->ISR & USART_ISR_RXNE) //RX interupt
{
data=USART1->RDR;
...
Many thanks
Scott
