Uart data register flush out
Hi,
I am currently using f446 nucleo board with some over uart interface.I am able to send the desired frames over Uart to sensor and sensor is properly responding by sending positive acknowledgement to each uart sent frames.And this verified in logic analyser.But while receiving it on rx pin mcu is not able detet t bytes properly.even thought desired bytes are available over uart rx lin as it is verified using logic analyzer
Thing I am missing is I am not flushing out the dayat ragister and buffers before reading data.
Is there any HAL API to perform this flush operation
May be for reference, myserial.flush api of arduino.this functionality I am looking for
Thanks alex
