2021-10-31 11:38 PM
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
2021-11-01 01:08 AM
Is it holding error status that need explicit clearing.
What is the source and rate of the data? Can you review failure against scope or logic analyzer traces?
2021-11-01 01:22 AM
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