cancel
Showing results for 
Search instead for 
Did you mean: 

UART Rx does not work sometimes

MT.2
Associate II

Hi there! I am using STM8s for UART communication but recently I found that UART Rx does not work sometimes. I am using UART Idle interrupt for Rx at this moment. Could someone suggest a way to me for debugging?

Cheers,

Morris

2 REPLIES 2

Is it holding error status that need explicit clearing.

W​hat is the source and rate of the data? Can you review failure against scope or logic analyzer traces?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Not sure if it is holding an error flag as I just read the status of UART_IT_RXNE and UART_IT_IDLE in order to handle those incoming data . This Stm8s is communicating with a third party BLE module and the rate is just 9600. I have used UART serial port to read the incoming data in parallel and the data is fine but Stm8s does not give related response unless I re- power it. This issue does not come frequently, may be just 1 time per 500