RS232 Communication between two microcontrollers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-11 1:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-11 2:43 AM
Do you really mean RS232 - or is this just a direct, logic-level connection?
See 'Hardware Implementation' here:
https://learn.sparkfun.com/tutorials/serial-communication
Have you tested both sides of the link with a terminal program on a PC before trying to put them together?
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
‎2017-12-11 3:53 AM
I have tested it from sender side and I am getting data send on serial window.
Thanks for answering.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-11 4:14 AM
Tried a scope on RX of the receiver, i.e. at the RX pin of the receiver MCU ?
A polarity issue ?
Tried to connect the receiver side to an external terminal (e.g. a PC) via an USB - serial adapter ?
Not going to wade all through this cube code ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-11 4:45 AM
AVINASH PATHAK wrote:
I have tested it from sender side
How, exactly, did you test it.
Be specific. Remember: we cannot see what you're doing - we have to rely entirely upon what you post!
AVINASH PATHAK wrote:
I am getting data send on serial window.
Please clarify - I don't know what you mean by that.
What 'serial window' ?
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
‎2017-12-11 5:24 AM
I think your GPIO pins may need to be configured as '..._AF_PP' with some additional .Alternate setting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-11 7:24 AM
Indeed, I would double check the port level initialization which CubeMX obfuscates into other files/functions.
Scope the pins and test sending from a terminal app, checking if the receive function reports errors, or the USART has status issue with respect to framing or other errors.
Up vote any posts that you find helpful, it shows what's working..
