2011-05-16 06:09 AM
Overrun Error using USART1
2011-05-17 05:35 AM
while( !(RCC_GetFlagStatus(RCC_FLAG_PLLRDY)== SET) );
Never have a busy-loop wait in an ISR!
2011-05-17 05:35 AM
[EDIT] : I found another problem not regarding the STM32. The post is to be closed Thanks all.
OK I will change this. I forgot to say something, my USART is linked to the PC by a XBee module and it is also stood by as the STM32 is. I'm trying a solution which just comes to me. I'll shared it here if it works.2011-05-17 05:35 AM
[EDIT] : I found another problem not regarding the STM32. The post is to be closed Thanks all.
OK I will change this.
I forgot to say something, my USART is linked to the PC by a XBee module and it is also stood by as the STM32 is. I'm trying a solution which just comes to me. I'll shared it here if it works. Notwithstanding this apparent fix, you should always check for parity, framing, overrun, etc errors, and clear them by reading the data register. Even if you choose to ignore the error, it must be cleared before the USART will work properly again.
2011-05-17 05:35 AM
Thanks for the advise.