This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMSIS UART Driver, permanent receive not available?

Hello All,

in the CMSIS there is a framework for UART communication.
However I have to know in advance how many characters to receive.

I would have expected that UART driver write to kind of circular buffer permanently.

Because usually I do not know WHEN there is communication and HOW MANY data will be transmitted.
I assume that when I abort the receive function with timeout and start again the receive function that in the mean time I might loose data on the hardware. Because if the receive function is not active no DATA AVAILABLE event will be handled.

In my real live projects I only use the UART transmit functions and reimplement my custom receive functions.

How does CMSIS address this issue?
What is the best practice here?

Best regards.

Adib.