I'm using STM32f031k6 microcontroller when i receive the data through hal_uart_recieve the first byte i get is correct after that following bytes are garbage and also if i add the lines after the receive command it won't read the proper values?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-29 12:07 PM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-29 12:40 PM
Is there a question here? You've made a statement, with no code, or supporting information.
HAL_UART_Receive() blocks, won't typically pull data from the past, and can miss data. You really want to be using the HAL_UART_Receive_IT() form for any non-trivial implementation, and BUFFER the inbound data in a way you can process in a more leisurely fashion
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
