2022-09-26 02:31 PM
2022-09-26 07:47 PM
The ST USART will halt DMA if a receive error occurs. Do you have interrupts enabled for USART RX errors, and do you check/clear the USART status if an error does occur? If not, you will never get past the first time a parity/framing/overrun error occurs.
I've seen this many times, where clock jitter in the baud rate clock causes a framing or overrun error. Putty on a PC isn't using the same baud rate generator as the ST, so the fact it works with a PC would tend to point to the USART clock rate. Are you using HSI for the clock source? The oscillator tolerance is significant at high USART baud rates.
2022-09-27 12:12 PM
Thank you for the reply. Yes I am using HSI for the clock source. How can I overcome this overrun error?. How can I clear the USART status if an error does occur?
2022-09-27 12:40 PM
Duplicative questions, not identifying "STM32" in question
https://community.st.com/s/question/0D53W00001pZG2XSAW/i-am-having-difficulty-receiving-data-on-
usart2-it-is-receiving-one-character-when-i-use-haluartreceiveit-interrupts-i-am-trying-to-receive-some-characters-from-aducm360-usart