Multiple messages queuing for HAL_UART_Transmit_IT
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-12-09 2:47 AM
Posted on December 09, 2016 at 11:47The original post was too long to process during our migration. Please click on the attachment to read the original post.
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
2016-12-24 8:44 AM
Posted on December 24, 2016 at 17:44
I don't know if you sorted this but I made a thread recently which might help:
https://community.st.com/0D50X00009XkeYkSAJ
basically (looking at your short version only) HAL_UART_Transmit_IT() is not blocking so you are writing to buffer (the second sprintf) before the first lot of data is transmitted.
You have 3 options:
- wait for the 1st transmission to finish before writing to the buffer,
- set up a system where you either use separate buffers or unused parts of the buffer the 2nd time
- don't user HAL as it is much simpler without
