Receiving UART Data disordered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 4:40 AM
i'm using touchgfx h750DK to send a frame to an f446re st board then receive data from the board to the touchgfx
the data sent are good but the data received are disordered although i have the same configuration in both sides
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 4:46 AM - edited ‎2024-09-03 4:47 AM
What, exactly, do you mean by, "disordered" ?
How do you verify that, "the data sent are good" ?
There's no way that UART frames can change their order on the wire, so it must be in your software.
Do your UART comms work well without TouchGFX ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 5:11 AM
You'd need to make an effort to synchronize a byte stream. And identify the first byte in a sequence or packet.
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
‎2024-09-03 5:13 AM
the data i received are not int the same order of sending
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 5:53 AM
You have a bug in your software. You should debug your code to find the source of the error and correct it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 6:23 AM
So how, exactly, are you connecting the two units?
The more details you share, the quicker and easier it is to get to a solution:
Again, the data cannot possible get reordered on a simple wired connection - so either you're not just using a simple wired connection, or the problem has to be in your (receiving) software.
You didn't say how you've confirmed that the transmission is fine.
Nor whether your UART comms work well without TouchGFX ?
What investigation/testing/debugging have you done to find what's going wrong?
Is there any pattern the "reordering"?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 6:40 AM
You'll need to make a much more effective presentation of your issue, showing code and each end, and scope traces proving in-order dispatch.
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
‎2024-09-03 7:48 AM
Related thread: https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/problem-while-sending-a-lin-frame-from-touchgfx/td-p/711283
