Skip to main content
MT.2
Associate II
November 1, 2021
Question

UART Rx does not work sometimes

  • November 1, 2021
  • 1 reply
  • 2577 views

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

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
November 1, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
MT.2
MT.2Author
Associate II
November 1, 2021

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