This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A bug in ST's firmware library?

People,
please do forgive me if I'm wrong - my head hurts, have been debugging all day long and I may have found the problem!
See pevious threads related to UART interrupts. I think I never acknowledged the interrupt because

void UART_ClearITPendingBit(UART_TypeDef* UARTx, u16 UART_IT)
{
  /* Clear the specified interrupt */
  UARTx->ICR &= UART_IT;
}

does not write a 1 to acknowledge the receive interrupt if ICR is already 0 when the call occurs.
if you do this:

UART0->ICR = 0x10 ;

the interrupt is acknowledge (yes, I know this might overwrite other bits...)
Please forgive me if I oversee something (did read the specification, too much actually...), I am "kapoot" but happy I managed to more on a little!

0