2017-12-11 01:25 AM
2017-12-11 02: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?
2017-12-11 03:53 AM
I have tested it from sender side and I am getting data send on serial window.
Thanks for answering.
2017-12-11 04: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 ...
2017-12-11 04: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' ?
2017-12-11 05:24 AM
I think your GPIO pins may need to be configured as '..._AF_PP' with some additional .Alternate setting.
2017-12-11 07: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.