cancel
Showing results for 
Search instead for 
Did you mean: 

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

acorradini9
Associate II
Posted on November 21, 2006 at 11:19

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

2 REPLIES 2
acorradini9
Associate II
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

amira1
Associate II
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