UART Rx does not work sometimes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Labels:
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-01 1: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?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-11-01 1: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
