Two STM32 communicating over UART
I have written code for both the transmitter as well as receiver board. The issue is when i see the communication over logic analyzer or even while using TTL to RS232 converter, i can see that the port is continuously occupied and master is transmitting data continuously over Tx and for the same Tx of slave is sending acknowledgement continuously.
In case of ideal situation, the communication should only happen after 1 second not until that. Even if the data is getting transferred continuously, though at every 1 second i can see correct data being transmitted and received by both the boards in their respective debuggers (STM32CubeIDE).
If i remove the connection between both the boards then the master is transmitting only at an interval of 1 second. The issue lies only when both the boards are communicating. Also when both the boards are communicating, i can see OVERRUN, IDLE and RXNE Flag SET in my Status Register. If i remove connection then non of these flags are SET.
Connection: Master Slave
Tx ----------- Rx
Rx ------------ Tx
Please do share some insights on this!!
