[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.
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
[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.
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..