Skip to main content
Visitor II
November 21, 2006
Question

STM library error on function UART (UART_ClearITPendingBit(..))

  • November 21, 2006
  • 2 replies
  • 725 views
Posted on November 21, 2006 at 11:19

STM library error on function UART (UART_ClearITPendingBit(..))

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:34

    WARNING:

    On the library STM.

    In the module 91x_uart.c.

    Function ''void UART_ClearITPendingBit(UART_TypeDef* UARTx, u16 UART_IT)''

    old line

    UARTx->ICR &= UART_IT; // NO! ICR only WRITE --> Always 0.

    new line

    UARTx->ICR = UART_IT;

    Best Regards

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:34

    Hi Hal,

    please refer to this link :

    http://mcu.st.com/mcu/forums-cat-4436-21.html

    Best regards,

    mirou