Skip to main content
Visitor II
November 1, 2021
Question

UART Rx does not work sometimes

  • November 1, 2021
  • 1 reply
  • 1745 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

    Graduate II
    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?

    MT.2Author
    Visitor 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